diff options
author | Stefan Kangas <stefan@marxist.se> | 2022-01-30 06:31:11 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2022-01-30 06:31:11 +0100 |
commit | f4ddd6153d0108e6101590699ab4a839a90739d9 (patch) | |
tree | 8d3e0662a8b3cf1e2bcdd8edb0e6c6b77ea244c0 /doc/emacs | |
parent | 28865201604c57c4d7a43625010c1aed8ca1bd46 (diff) | |
parent | e81e375539b95753e34cde3d9d5188d48aa1922f (diff) | |
download | emacs-f4ddd6153d0108e6101590699ab4a839a90739d9.tar.gz emacs-f4ddd6153d0108e6101590699ab4a839a90739d9.tar.bz2 emacs-f4ddd6153d0108e6101590699ab4a839a90739d9.zip |
Merge from origin/emacs-28
e81e375539 ; Yet another minor fix of Malayalam composition rules.
94f38cbec4 Fix last change of Malayalam composition rules
ed3bbeb80d Fix rendering of Malayalam script
5ef3a52342 Improve documentation of Occur mode
Diffstat (limited to 'doc/emacs')
-rw-r--r-- | doc/emacs/search.texi | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index a57cfac8daf..982c7f4a2c2 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi @@ -1874,12 +1874,12 @@ replacing regexp matches in file names. @node Other Repeating Search @section Other Search-and-Loop Commands - Here are some other commands that find matches for a regular -expression. They all ignore case in matching, if the pattern contains + Here are some other commands that find matches for regular +expressions. They all ignore case in matching, if the pattern contains no upper-case letters and @code{case-fold-search} is non-@code{nil}. Aside from @code{multi-occur} and @code{multi-occur-in-matching-buffers}, -which always search the whole buffer, all operate on the text from point -to the end of the buffer, or on the region if it is active. +which always search the whole buffer, all of the commands operate on the +text from point to the end of the buffer, or on the region if it is active. @table @kbd @findex multi-isearch-buffers @@ -1953,19 +1953,27 @@ is not considered a match. @kindex RET @r{(Occur mode)} @kindex o @r{(Occur mode)} @kindex C-o @r{(Occur mode)} -In the @file{*Occur*} buffer, you can click on each entry, or move -point there and type @key{RET}, to visit the corresponding position in -the buffer that was searched. @kbd{o} and @kbd{C-o} display the match -in another window; @kbd{C-o} does not select it. Alternatively, you -can use the @kbd{M-g M-n} (@code{next-error}) command to visit the -occurrences one by one (@pxref{Compilation Mode}). +The @file{*Occur*} buffer uses the Occur mode as its major mode. You +can use the @kbd{n} and @kbd{p} keys to move to the next or previous +match; with prefix numeric argument, these commands move that many +matches. Digit keys are bound to @code{digit-argument}, so @kbd{5 n} +moves to the fifth next match (you don't have to type @kbd{C-u}). +@key{SPC} and @key{DEL} scroll the @file{*Occur*} buffer up and down. +Clicking on a match or moving point there and typing @key{RET} visits +the corresponding position in the original buffer that was searched. +@kbd{o} and @kbd{C-o} display the match in another window; @kbd{C-o} +does not select that window. Alternatively, you can use the @kbd{M-g +M-n} (@code{next-error}) command to visit the occurrences one by one +(@pxref{Compilation Mode}). Finally, @kbd{q} quits the window showing +the @file{*Occur*} buffer and buries the buffer. @cindex Occur Edit mode @cindex mode, Occur Edit -Typing @kbd{e} in the @file{*Occur*} buffer switches to Occur Edit -mode, in which edits made to the entries are also applied to the text -in the originating buffer. Type @kbd{C-c C-c} to return to Occur -mode. +Typing @kbd{e} in the @file{*Occur*} buffer makes the buffer writable +and enters the Occur Edit mode, in which you can edit the matching +lines and have those edits reflected in the text in the originating +buffer. Type @kbd{C-c C-c} to leave the Occur Edit mode and return to +the Occur mode. @findex list-matching-lines The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x |