From: André Spiegel Date: Thu, 10 Oct 2002 22:30:26 +0000 (+0000) Subject: (dired-insert-directory): Fix check for indentation from ls --dired. X-Git-Tag: ttn-vms-21-2-B4~12873 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9227ba33a075f33cba2bac853caee35c832f2a89;p=emacs.git (dired-insert-directory): Fix check for indentation from ls --dired. --- diff --git a/lisp/dired.el b/lisp/dired.el index 71e4dd35d19..6aebd08d487 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -701,7 +701,7 @@ If HDR is non-nil, insert a header line with the directory name." ;; 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)))