aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKarl Fogel2019-09-12 12:42:13 -0500
committerKarl Fogel2019-09-12 12:42:13 -0500
commitbbadc6e05f4321466fe8bcd91df6b65fbc6c7d69 (patch)
tree42c77b5950953710dfac1df2af9ea152192d0f76 /doc
parent5e8d477d63496ada8eb2c42d23735df0cf05ee2d (diff)
downloademacs-bbadc6e05f4321466fe8bcd91df6b65fbc6c7d69.tar.gz
emacs-bbadc6e05f4321466fe8bcd91df6b65fbc6c7d69.zip
Add `isearch-yank-until-char'
* lisp/isearch.el (isearch-yank-until-char): New function. (isearch-mode-map, isearch-menu-bar-yank-map): Add it. (isearch-forward): Document the new binding. * doc/emacs/search.texi (Isearch Yanking): Document the feature. * etc/NEWS: Mention the above.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/search.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 66af5d40162..38ef49ed64d 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -262,11 +262,19 @@ of whether to copy a character or a symbol is heuristic.)
262 262
263@kindex M-s C-e @r{(Incremental search)} 263@kindex M-s C-e @r{(Incremental search)}
264@findex isearch-yank-line 264@findex isearch-yank-line
265 Similarly, @kbd{M-s C-e} (@code{isearch-yank-line}) appends the rest 265 @kbd{M-s C-e} (@code{isearch-yank-line}) appends the rest
266of the current line to the search string. If point is already at the 266of the current line to the search string. If point is already at the
267end of a line, it appends the next line. With a prefix argument 267end of a line, it appends the next line. With a prefix argument
268@var{n}, it appends the next @var{n} lines. 268@var{n}, it appends the next @var{n} lines.
269 269
270@kindex C-M-z @r{(Incremental search)}
271@findex isearch-yank-until-char
272 Similarly, @kbd{C-M-z} (@code{isearch-yank-until-char}) appends to
273the search string everything from point until the next occurence of
274a specified character (not including that character). This is especially
275useful for keyboard macros, for example in programming languages or
276markup languages in which that character marks a token boundary.
277
270@kindex C-y @r{(Incremental search)} 278@kindex C-y @r{(Incremental search)}
271@kindex M-y @r{(Incremental search)} 279@kindex M-y @r{(Incremental search)}
272@kindex mouse-2 @r{in the minibuffer (Incremental search)} 280@kindex mouse-2 @r{in the minibuffer (Incremental search)}