mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
* lisp/emacs-lisp/bytecomp.el (byte-compile-save-excursion): Change the
warning message.
This commit is contained in:
parent
c96bbc66c6
commit
0a57d256af
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue