aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorJoakim Verona2012-08-15 21:49:40 +0200
committerJoakim Verona2012-08-15 21:49:40 +0200
commitb648c26ec642a1dc58c0bd7e59d6011b964dbe37 (patch)
treef0f3b38ffa9054702f475fc53622e28da14f97b1 /lisp/replace.el
parentc8b0fc1999006af5a4317b44068fac13d9592143 (diff)
parent94c9ece10275f8ca9323c38f93607f1046035c79 (diff)
downloademacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.tar.gz
emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.zip
upstream
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 5baf68224c4..3373ee8e512 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -912,7 +912,9 @@ To return to ordinary Occur mode, use \\[occur-cease-edit]."
912 (line-number-at-pos (window-start)))) 912 (line-number-at-pos (window-start))))
913 (readonly (with-current-buffer buf buffer-read-only)) 913 (readonly (with-current-buffer buf buffer-read-only))
914 (win (or (get-buffer-window buf) 914 (win (or (get-buffer-window buf)
915 (display-buffer buf t))) 915 (display-buffer buf
916 '(nil (inhibit-same-window . t)
917 (inhibit-switch-frame . t)))))
916 (line-end (line-end-position)) 918 (line-end (line-end-position))
917 (text (save-excursion 919 (text (save-excursion
918 (goto-char (next-single-property-change 920 (goto-char (next-single-property-change
@@ -1140,8 +1142,8 @@ contain \\& and \\N which convention follows `replace-match'.
1140For example, providing \"defun\\s +\\(\\S +\\)\" for REGEXP and 1142For example, providing \"defun\\s +\\(\\S +\\)\" for REGEXP and
1141\"\\1\" for NLINES collects all the function names in a lisp 1143\"\\1\" for NLINES collects all the function names in a lisp
1142program. When there is no parenthesized subexpressions in REGEXP 1144program. When there is no parenthesized subexpressions in REGEXP
1143the entire match is collected. In any case the searched buffers 1145the entire match is collected. In any case the searched buffer
1144are not modified." 1146is not modified."
1145 (interactive (occur-read-primary-args)) 1147 (interactive (occur-read-primary-args))
1146 (occur-1 regexp nlines (list (current-buffer)))) 1148 (occur-1 regexp nlines (list (current-buffer))))
1147 1149