# HG changeset patch # User Richard M. Stallman # Date 1159758521 0 # Node ID dae82b8b03551f6d08471f068cfa888cc9b13310 # Parent d4e0ad705c8859f74ddcd21658f9c6d9d6e6eff1 (dired-build-subdir-alist): Fix previous change. diff -r d4e0ad705c88 -r dae82b8b0355 lisp/dired.el --- a/lisp/dired.el Mon Oct 02 02:30:06 2006 +0000 +++ b/lisp/dired.el Mon Oct 02 03:08:41 2006 +0000 @@ -2225,14 +2225,14 @@ (substring new-dir-name (match-end 0))) (expand-file-name new-dir-name)))) (delete-region (point) (match-end 1)) - (insert new-dir-name))) - (setq count (1+ count)) - (dired-alist-add-1 new-dir-name - ;; Place a sub directory boundary between lines. - (save-excursion - (goto-char (match-beginning 0)) - (beginning-of-line) - (point-marker)))) + (insert new-dir-name)) + (setq count (1+ count)) + (dired-alist-add-1 new-dir-name + ;; Place a sub directory boundary between lines. + (save-excursion + (goto-char (match-beginning 0)) + (beginning-of-line) + (point-marker))))) (if (and (> count 1) (interactive-p)) (message "Buffer includes %d directories" count))) ;; We don't need to sort it because it is in buffer order per