Mercurial > emacs
changeset 16276:f98b8c0b6414
(byte-optimize-form-code-walker):
Treat save-current-buffer like save-excursion.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 22 Sep 1996 04:38:36 +0000 |
parents | a4bcfdc9bb66 |
children | bbddbc86b82b |
files | lisp/emacs-lisp/byte-opt.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/byte-opt.el Sun Sep 22 04:38:10 1996 +0000 +++ b/lisp/emacs-lisp/byte-opt.el Sun Sep 22 04:38:36 1996 +0000 @@ -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