# HG changeset patch # User Andr Spiegel # Date 1034289026 0 # Node ID 6bb5a8b3bbd3ab002899edd14b32296d5583444e # Parent ac4ceed3bbaf6c05ba13180cda1d7b660ae4d74c (dired-insert-directory): Fix check for indentation from ls --dired. diff -r ac4ceed3bbaf -r 6bb5a8b3bbd3 lisp/dired.el --- a/lisp/dired.el Thu Oct 10 22:05:02 2002 +0000 +++ b/lisp/dired.el Thu Oct 10 22:30:26 2002 +0000 @@ -701,7 +701,7 @@ ;; If we used --dired and it worked, the lines are already indented. ;; Otherwise, indent them. (unless (save-excursion - (forward-line -1) + (beginning-of-buffer) (looking-at " ")) (let ((indent-tabs-mode nil)) (indent-rigidly opoint (point) 2)))