changeset 47852:d8b6eab7d77a

(dired-insert-directory): When looking for existing indentation, goto OPOINT instead of beginning of buffer.
author Andreas Schwab <schwab@suse.de>
date Sat, 12 Oct 2002 23:30:22 +0000
parents 4c3bd5a753a1
children 317d7b5ff175
files lisp/dired.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Sat Oct 12 22:08:20 2002 +0000
+++ b/lisp/dired.el	Sat Oct 12 23:30:22 2002 +0000
@@ -701,7 +701,7 @@
     ;; If we used --dired and it worked, the lines are already indented.
     ;; Otherwise, indent them.
     (unless (save-excursion
-	      (beginning-of-buffer)
+	      (goto-char opoint)
 	      (looking-at "  "))
       (let ((indent-tabs-mode nil))
 	(indent-rigidly opoint (point) 2)))