(byte-optimize-form-code-walker):
Treat save-current-buffer like save-excursion.
This commit is contained in:
parent
1d288aefee
commit
2754fefaec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue