From: Chong Yidong Date: Sun, 28 Feb 2010 01:11:15 +0000 (-0500) Subject: Fix save-excursion warning in files.el. X-Git-Tag: emacs-pretest-23.1.94~25^2~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c3e96d2f0e4fee24498567c5840eb8d03d26720;p=emacs.git Fix save-excursion warning in files.el. * files.el (recover-session-finish): Use with-current-buffer instead of save-excursion. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1a51b18cbf5..27890d66ba6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --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