comparison lisp/replace.el @ 90785:8c2ef9d5d4a8

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 662-669) - Update from CVS - Fix read-only prompt problem in isearch - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 207-208) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-184
author Miles Bader <miles@gnu.org>
date Mon, 12 Mar 2007 00:42:43 +0000
parents ec58e5c426ef 8d2b12834458
children ca12f314faac
comparison
equal deleted inserted replaced
90784:5d47178d1a18 90785:8c2ef9d5d4a8
1047 ;; If we just renamed that buffer, we will make a new one here. 1047 ;; If we just renamed that buffer, we will make a new one here.
1048 (setq occur-buf (get-buffer-create buf-name)) 1048 (setq occur-buf (get-buffer-create buf-name))
1049 1049
1050 (with-current-buffer occur-buf 1050 (with-current-buffer occur-buf
1051 (occur-mode) 1051 (occur-mode)
1052 (let ((inhibit-read-only t)) 1052 (let ((inhibit-read-only t)
1053 ;; Don't generate undo entries for creation of the initial contents.
1054 (buffer-undo-list t))
1053 (erase-buffer) 1055 (erase-buffer)
1054 (let ((count (occur-engine 1056 (let ((count (occur-engine
1055 regexp active-bufs occur-buf 1057 regexp active-bufs occur-buf
1056 (or nlines list-matching-lines-default-context-lines) 1058 (or nlines list-matching-lines-default-context-lines)
1057 (and case-fold-search 1059 (and case-fold-search
1084 1086
1085 (defun occur-engine (regexp buffers out-buf nlines case-fold-search 1087 (defun occur-engine (regexp buffers out-buf nlines case-fold-search
1086 title-face prefix-face match-face keep-props) 1088 title-face prefix-face match-face keep-props)
1087 (with-current-buffer out-buf 1089 (with-current-buffer out-buf
1088 (let ((globalcount 0) 1090 (let ((globalcount 0)
1089 ;; Don't generate undo entries for creation of the initial contents.
1090 (buffer-undo-list t)
1091 (coding nil)) 1091 (coding nil))
1092 ;; Map over all the buffers 1092 ;; Map over all the buffers
1093 (dolist (buf buffers) 1093 (dolist (buf buffers)
1094 (when (buffer-live-p buf) 1094 (when (buffer-live-p buf)
1095 (let ((matches 0) ;; count of matched lines 1095 (let ((matches 0) ;; count of matched lines