[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99574: Fix save-excursion warning in
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99574: Fix save-excursion warning in files.el. |
Date: |
Sat, 27 Feb 2010 20:11:15 -0500 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99574
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Sat 2010-02-27 20:11:15 -0500
message:
Fix save-excursion warning in files.el.
* files.el (recover-session-finish): Use with-current-buffer instead of
save-excursion.
modified:
lisp/ChangeLog
lisp/files.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2010-02-27 21:21:43 +0000
+++ b/lisp/ChangeLog 2010-02-28 01:11:15 +0000
@@ -1,3 +1,8 @@
+2010-02-28 Chong Yidong <address@hidden>
+
+ * files.el (recover-session-finish): Use with-current-buffer
+ instead of save-excursion.
+
2010-02-27 Stefan Monnier <address@hidden>
Fix in-buffer completion when after-change-functions modify the buffer.
=== modified file 'lisp/files.el'
--- a/lisp/files.el 2010-02-24 15:30:49 +0000
+++ b/lisp/files.el 2010-02-28 01:11:15 +0000
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99574: Fix save-excursion warning in files.el.,
Chong Yidong <=