diff lisp/bytecomp/byte-optimize.el @ 161:28f395d8dc7a r20-3b7

Import from CVS: tag r20-3b7
author cvs
date Mon, 13 Aug 2007 09:42:26 +0200
parents 59463afc5666
children
line wrap: on
line diff
--- a/lisp/bytecomp/byte-optimize.el	Mon Aug 13 09:41:47 2007 +0200
+++ b/lisp/bytecomp/byte-optimize.el	Mon Aug 13 09:42:26 2007 +0200
@@ -433,7 +433,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