aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorMiles Bader2005-07-07 12:43:14 +0000
committerMiles Bader2005-07-07 12:43:14 +0000
commitd3e4babdd1267fb5690a17949196640a47c6f159 (patch)
tree968a42dfa187e492f9ce188aaf669d0cebf4bfe2 /lisp/replace.el
parenteeb88b27e1dbd3f412aa684d44e4a784f6e536a2 (diff)
parenta5717394ea6fbd7ea179c362646f4495f88245cb (diff)
downloademacs-d3e4babdd1267fb5690a17949196640a47c6f159.tar.gz
emacs-d3e4babdd1267fb5690a17949196640a47c6f159.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-68
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 459-473) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 86-87) - Update from CVS
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el23
1 files changed, 11 insertions, 12 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 0b19d72178f..4b745d54433 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -19,8 +19,8 @@
19 19
20;; You should have received a copy of the GNU General Public License 20;; You should have received a copy of the GNU General Public License
21;; along with GNU Emacs; see the file COPYING. If not, write to the 21;; along with GNU Emacs; see the file COPYING. If not, write to the
22;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23;; Boston, MA 02111-1307, USA. 23;; Boston, MA 02110-1301, USA.
24 24
25;;; Commentary: 25;;; Commentary:
26 26
@@ -719,7 +719,7 @@ See `occur-revert-function'.")
719 :group 'matching) 719 :group 'matching)
720 720
721(defcustom occur-hook nil 721(defcustom occur-hook nil
722 "Hook run when `occur' is called." 722 "Hook run by Occur when there are any matches."
723 :type 'hook 723 :type 'hook
724 :group 'matching) 724 :group 'matching)
725 725
@@ -926,7 +926,7 @@ If the value is nil, don't highlight the buffer names specially."
926Here `original-buffer-name' is the buffer name were occur was originally run. 926Here `original-buffer-name' is the buffer name were occur was originally run.
927When given the prefix argument, the renaming will not clobber the existing 927When given the prefix argument, the renaming will not clobber the existing
928buffer(s) of that name, but use `generate-new-buffer-name' instead. 928buffer(s) of that name, but use `generate-new-buffer-name' instead.
929You can add this to `occur-hook' if you always want a separate *Occur* 929You can add this to `occur-mode-hook' if you always want a separate *Occur*
930buffer for each buffer where you invoke `occur'." 930buffer for each buffer where you invoke `occur'."
931 (interactive "P") 931 (interactive "P")
932 (with-current-buffer 932 (with-current-buffer
@@ -1042,14 +1042,13 @@ See also `multi-occur'."
1042 (if (= count 1) "" "es") 1042 (if (= count 1) "" "es")
1043 regexp)) 1043 regexp))
1044 (setq occur-revert-arguments (list regexp nlines bufs)) 1044 (setq occur-revert-arguments (list regexp nlines bufs))
1045 (if (> count 0) 1045 (if (= count 0)
1046 (progn 1046 (kill-buffer occur-buf)
1047 (display-buffer occur-buf) 1047 (display-buffer occur-buf)
1048 (setq next-error-last-buffer occur-buf)) 1048 (setq next-error-last-buffer occur-buf)
1049 (kill-buffer occur-buf))) 1049 (setq buffer-read-only t)
1050 (setq buffer-read-only t) 1050 (set-buffer-modified-p nil)
1051 (set-buffer-modified-p nil) 1051 (run-hooks 'occur-hook)))))))
1052 (run-hooks 'occur-hook)))))
1053 1052
1054(defun occur-engine-add-prefix (lines) 1053(defun occur-engine-add-prefix (lines)
1055 (mapcar 1054 (mapcar