]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/bytecomp.el (byte-compile-save-excursion): Change the
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 15 Mar 2011 01:12:54 +0000 (21:12 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 15 Mar 2011 01:12:54 +0000 (21:12 -0400)
warning message.

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index b36be6f3a094fd04072bbe0f89031764a73f5d4d..e41e948ef295ef5d79c13cb7dc1c688a2fe770c2 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/bytecomp.el (byte-compile-save-excursion): Change the
+       warning message.
+
 2011-03-14  Michael Albinus  <michael.albinus@gmx.de>
 
        * shell.el (shell): When called interactively, offer to change the
index 5e24b80ac5a1e8364590e93ee8362444d5737a91..5c845e59c855828942dda1cd28f851342639cc46 100644 (file)
@@ -3776,7 +3776,8 @@ that suppresses all warnings during execution of BODY."
 (defun byte-compile-save-excursion (form)
   (if (and (eq 'set-buffer (car-safe (car-safe (cdr form))))
            (byte-compile-warning-enabled-p 'suspicious))
-      (byte-compile-warn "`save-excursion' defeated by `set-buffer'"))
+      (byte-compile-warn
+       "Use `with-current-buffer' rather than save-excursion+set-buffer"))
   (byte-compile-out 'byte-save-excursion 0)
   (byte-compile-body-do-effect (cdr form))
   (byte-compile-out 'byte-unbind 1))