# HG changeset patch # User Chong Yidong # Date 1267319475 18000 # Node ID a383e724a57c2dbc0302a4d14cf87e079dc3d7e7 # Parent 13dafa175b9cbf2c07ddc75a60ab832076c6f4af Fix save-excursion warning in files.el. * files.el (recover-session-finish): Use with-current-buffer instead of save-excursion. diff -r 13dafa175b9c -r a383e724a57c lisp/ChangeLog --- 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 + + * files.el (recover-session-finish): Use with-current-buffer + instead of save-excursion. + 2010-02-27 Stefan Monnier Fix in-buffer completion when after-change-functions modify the buffer. diff -r 13dafa175b9c -r a383e724a57c lisp/files.el --- 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