diff options
Diffstat (limited to 'doc/emacs/search.texi')
-rw-r--r-- | doc/emacs/search.texi | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index f3c42bcea7f..a1760ad66ff 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi @@ -201,6 +201,14 @@ something before the starting point, type @kbd{C-r} to switch to a backward search, leaving the search string unchanged. Similarly, @kbd{C-s} in a backward search switches to a forward search. +@cindex search, changing direction +@vindex isearch-repeat-on-direction-change + When you change the direction of a search, the first command you +type will, by default, remain on the same match, and the cursor will +move to the other end of the match. To move to another match +immediately, customize the variable +@code{isearch-repeat-on-direction-change} to @code{t}. + @cindex search, wrapping around @cindex search, overwrapped @cindex wrapped search @@ -293,13 +301,11 @@ from point to the @var{n}th occurrence of the specified character. @findex isearch-yank-x-selection Within incremental search, @kbd{C-y} (@code{isearch-yank-kill}) appends the current kill to the search string. @kbd{M-y} -(@code{isearch-yank-pop}), if called after @kbd{C-y}, replaces that -appended text with an earlier kill, similar to the usual @kbd{M-y} -(@code{yank-pop}) command. When @kbd{M-y} is called not after -@kbd{C-y}, then it activates the minibuffer where you can select -a previous kill to append to the search string (@pxref{Earlier -Kills}). Clicking @kbd{mouse-2} in the echo area appends the current -X selection (@pxref{Primary Selection}) to the search string +(@code{isearch-yank-pop}), if called after @kbd{C-y} during +incremental search, replaces that appended text with an earlier kill, +similar to the usual @kbd{M-y} (@code{yank-pop}) command. Clicking +@kbd{mouse-2} in the echo area appends the current X selection +(@pxref{Primary Selection}) to the search string (@code{isearch-yank-x-selection}). @kindex C-M-d @r{(Incremental search)} @@ -1965,6 +1971,17 @@ it never deletes lines that are only partially contained in the region (a newline that ends a line counts as part of that line). If a match is split across lines, this command keeps all those lines. + +@findex kill-matching-lines +@item M-x kill-matching-lines +Like @code{flush-lines}, but also add the matching lines to the kill +ring. The command adds the matching lines to the kill ring as a +single string, including the newlines that separated the lines. + +@findex copy-matching-lines +@item M-x copy-matching-lines +Like @code{kill-matching-lines}, but the matching lines are not +removed from the buffer. @end table @node Search Customizations |