(dired-insert-subdir-doinsert): Check that the
authorAndreas Schwab <schwab@suse.de>
Thu, 27 May 1999 09:34:36 +0000 (09:34 +0000)
committerAndreas Schwab <schwab@suse.de>
Thu, 27 May 1999 09:34:36 +0000 (09:34 +0000)
headerline does not exist already.

lisp/dired-aux.el

index 8ef3c29..8a71d27 100644 (file)
@@ -1619,7 +1619,8 @@ This function takes some pains to conform to `ls -lR' output."
     ;;  moves point.
     ;;  Need a marker for END as this inserts text.
     (goto-char begin)
-    (dired-insert-headerline dirname)
+    (if (not (looking-at "^  /.*:$"))
+       (dired-insert-headerline dirname))
     ;; point is now like in dired-build-subdir-alist
     (prog1
        (list begin (marker-position end))