diff options
| author | Joakim Verona | 2012-08-15 21:49:40 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-08-15 21:49:40 +0200 |
| commit | b648c26ec642a1dc58c0bd7e59d6011b964dbe37 (patch) | |
| tree | f0f3b38ffa9054702f475fc53622e28da14f97b1 /lisp/replace.el | |
| parent | c8b0fc1999006af5a4317b44068fac13d9592143 (diff) | |
| parent | 94c9ece10275f8ca9323c38f93607f1046035c79 (diff) | |
| download | emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.tar.gz emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.zip | |
upstream
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 8 |
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'. | |||
| 1140 | For example, providing \"defun\\s +\\(\\S +\\)\" for REGEXP and | 1142 | For 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 |
| 1142 | program. When there is no parenthesized subexpressions in REGEXP | 1144 | program. When there is no parenthesized subexpressions in REGEXP |
| 1143 | the entire match is collected. In any case the searched buffers | 1145 | the entire match is collected. In any case the searched buffer |
| 1144 | are not modified." | 1146 | is 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 | ||