]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-form-code-walker):
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 Sep 1996 04:38:36 +0000 (04:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 Sep 1996 04:38:36 +0000 (04:38 +0000)
Treat save-current-buffer like save-excursion.

lisp/emacs-lisp/byte-opt.el

index 80f3bedc0ef7d57e0386a80b0153b4c59910f41d..ef2880c7d9b1aae73f93b5c7c6192e09f8ba10f6 100644 (file)
               (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