changeset 24784:8c5bc687c346

(dired-insert-subdir-doinsert): Check that the headerline does not exist already.
author Andreas Schwab <schwab@suse.de>
date Thu, 27 May 1999 09:34:36 +0000
parents 69377a75bead
children 14b904ea2409
files lisp/dired-aux.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-aux.el	Wed May 26 17:14:33 1999 +0000
+++ b/lisp/dired-aux.el	Thu May 27 09:34:36 1999 +0000
@@ -1619,7 +1619,8 @@
     ;;  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))