Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0a57d256
Commit
0a57d256
authored
Mar 14, 2011
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/bytecomp.el (byte-compile-save-excursion): Change the
warning message.
parent
c96bbc66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/bytecomp.el
+2
-1
No files found.
lisp/ChangeLog
View file @
0a57d256
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
...
...
lisp/emacs-lisp/bytecomp.el
View file @
0a57d256
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment