# HG changeset patch # User Andreas Schwab # Date 1034465422 0 # Node ID d8b6eab7d77aa8840535ee0cb0e7c0224a05f63e # Parent 4c3bd5a753a1c9d5b24f02f71dbec7a438f3768f (dired-insert-directory): When looking for existing indentation, goto OPOINT instead of beginning of buffer. diff -r 4c3bd5a753a1 -r d8b6eab7d77a lisp/dired.el --- 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)))