summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-22 04:38:36 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-22 04:38:36 +0000
commit56f3aa0bcf0d7231dc7983888dd67f735854f170 (patch)
tree4999e530283bab6521feb28e9b92f55443f7de21
parent07e6f94a38b051a1dceb5556f548f52c26866d15 (diff)
downloademacs-56f3aa0bcf0d7231dc7983888dd67f735854f170.tar.gz
(byte-optimize-form-code-walker):
Treat save-current-buffer like save-excursion.
-rw-r--r--lisp/emacs-lisp/byte-opt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index 80f3bedc0ef..ef2880c7d9b 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -423,7 +423,7 @@
(cons (byte-optimize-form (nth 2 form) for-effect)
(byte-optimize-body (cdr (cdr (cdr form))) t)))))
- ((memq fn '(save-excursion save-restriction))
+ ((memq fn '(save-excursion save-restriction save-current-buffer))
;; those subrs which have an implicit progn; it's not quite good
;; enough to treat these like normal function calls.
;; This can turn (save-excursion ...) into (save-excursion) which