aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDaniel Colascione2018-02-22 17:42:48 -0800
committerDaniel Colascione2018-02-22 17:50:39 -0800
commitb9d414e77c4f6396e202069fdd233b6687e6da64 (patch)
tree0cfea149d344763b975fcad7aa6798cec1db545d /doc
parentb7542b2a0a00adc8d216697db0b8afd8d568de00 (diff)
downloademacs-b9d414e77c4f6396e202069fdd233b6687e6da64.tar.gz
emacs-b9d414e77c4f6396e202069fdd233b6687e6da64.zip
Add isearch-yank-symbol-or-char
* doc/emacs/search.texi (Isearch Yank): Document new function, keybindings. * etc/NEWS: Mention isearch changes. * lisp/isearch.el (isearch--yank-char-or-syntax): New function. (isearch-yank-word-or-char): Call it. (isearch-yank-symbol-or-char): New function. (isearch-mode-map): Change 'C-M-w' binding from 'isearch-del-char' to isearch-yank-symbol-or-char; add 'C-M-d' binding for 'isearch-del-char'.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/search.texi11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 319f64fbae1..37446ca1c46 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -229,6 +229,13 @@ character or word at point to the search string. This is an easy way
229to search for another occurrence of the text at point. (The decision 229to search for another occurrence of the text at point. (The decision
230of whether to copy a character or a word is heuristic.) 230of whether to copy a character or a word is heuristic.)
231 231
232@kindex C-M-w @r{(Incremental search)}
233@findex isearch-yank-symbol-or-char
234 @kbd{C-M-w} (@code{isearch-yank-symbol-or-char}) appends the next
235character or symbol at point to the search string. This is an easy way
236to search for another occurrence of the symbol at point. (The decision
237of whether to copy a character or a word is heuristic.)
238
232@kindex M-s C-e @r{(Incremental search)} 239@kindex M-s C-e @r{(Incremental search)}
233@findex isearch-yank-line 240@findex isearch-yank-line
234 Similarly, @kbd{M-s C-e} (@code{isearch-yank-line}) appends the rest 241 Similarly, @kbd{M-s C-e} (@code{isearch-yank-line}) appends the rest
@@ -250,11 +257,11 @@ appended text with an earlier kill, similar to the usual @kbd{M-y}
250in the echo area appends the current X selection (@pxref{Primary 257in the echo area appends the current X selection (@pxref{Primary
251Selection}) to the search string (@code{isearch-yank-x-selection}). 258Selection}) to the search string (@code{isearch-yank-x-selection}).
252 259
253@kindex C-M-w @r{(Incremental search)} 260@kindex C-M-d @r{(Incremental search)}
254@kindex C-M-y @r{(Incremental search)} 261@kindex C-M-y @r{(Incremental search)}
255@findex isearch-del-char 262@findex isearch-del-char
256@findex isearch-yank-char 263@findex isearch-yank-char
257 @kbd{C-M-w} (@code{isearch-del-char}) deletes the last character 264 @kbd{C-M-d} (@code{isearch-del-char}) deletes the last character
258from the search string, and @kbd{C-M-y} (@code{isearch-yank-char}) 265from the search string, and @kbd{C-M-y} (@code{isearch-yank-char})
259appends the character after point to the search string. An 266appends the character after point to the search string. An
260alternative method to add the character after point is to enter the 267alternative method to add the character after point is to enter the