changeset 76392:8d2b12834458

(occur-engine): buffer-undo-list binding moved... (occur-1): ...to here.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 08 Mar 2007 15:17:42 +0000
parents 535745f7a847
children 371f58e072ac
files lisp/replace.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Thu Mar 08 15:17:34 2007 +0000
+++ b/lisp/replace.el	Thu Mar 08 15:17:42 2007 +0000
@@ -1049,7 +1049,9 @@
 
     (with-current-buffer occur-buf
       (occur-mode)
-      (let ((inhibit-read-only t))
+      (let ((inhibit-read-only t)
+	    ;; Don't generate undo entries for creation of the initial contents.
+	    (buffer-undo-list t))
 	(erase-buffer)
 	(let ((count (occur-engine
 		      regexp active-bufs occur-buf
@@ -1086,8 +1088,6 @@
 			    title-face prefix-face match-face keep-props)
   (with-current-buffer out-buf
     (let ((globalcount 0)
-	  ;; Don't generate undo entries for creation of the initial contents.
-	  (buffer-undo-list t)
 	  (coding nil))
       ;; Map over all the buffers
       (dolist (buf buffers)