Mercurial > emacs
changeset 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 | 13dafa175b9c |
children | 2da9673fc448 |
files | lisp/ChangeLog lisp/files.el |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Feb 27 16:21:43 2010 -0500 +++ b/lisp/ChangeLog Sat Feb 27 20:11:15 2010 -0500 @@ -1,3 +1,8 @@ +2010-02-28 Chong Yidong <cyd@stupidchicken.com> + + * files.el (recover-session-finish): Use with-current-buffer + instead of save-excursion. + 2010-02-27 Stefan Monnier <monnier@iro.umontreal.ca> Fix in-buffer completion when after-change-functions modify the buffer.
--- 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