summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index d6783f82fbb..f0a8d72d3f0 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5034,9 +5034,8 @@ This command is used in the special Dired buffer created by
(dired-unmark 1)
(dired-do-flagged-delete t)
(unwind-protect
- (save-excursion
+ (with-current-buffer buffer
;; Read in the auto-save-list file.
- (set-buffer buffer)
(erase-buffer)
(insert-file-contents file)
;; Loop thru the text of that file