Mercurial > emacs
diff lisp/files.el @ 107251:a383e724a57c
Fix save-excursion warning in files.el.
* files.el (recover-session-finish): Use with-current-buffer instead of save-excursion.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 27 Feb 2010 20:11:15 -0500 |
parents | f824258be7d1 |
children | b73242777fb9 |
line wrap: on
line diff
--- a/lisp/files.el Sat Feb 27 16:21:43 2010 -0500 +++ b/lisp/files.el Sat Feb 27 20:11:15 2010 -0500 @@ -5034,9 +5034,8 @@ (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