aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-03-06 13:24:11 -0500
committerChong Yidong2011-03-06 13:24:11 -0500
commit892777baa1739fa5f1f2d1c2975488c3e6f57bae (patch)
treeae24eefa9adde944ffce1a3d3bb87e92272d6553
parent804a116c9d1bae9e7f0feb48657ad44691a4557c (diff)
downloademacs-892777baa1739fa5f1f2d1c2975488c3e6f57bae.tar.gz
emacs-892777baa1739fa5f1f2d1c2975488c3e6f57bae.zip
Bind C-y in Isearch to isearch-yank-kill.
* lisp/isearch.el (isearch-mode-map): Bind C-y to isearch-yank-kill, and move isearch-yank-line to M-s C-e. * doc/emacs/search.texi (Isearch Yank): C-y now bound to isearch-yank-kill.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/search.texi31
-rw-r--r--etc/NEWS9
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/isearch.el3
5 files changed, 36 insertions, 16 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index dc43450110f..dfdef6a0b05 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12011-03-06 Chong Yidong <cyd@stupidchicken.com>
2
3 * search.texi (Isearch Yank): C-y now bound to isearch-yank-kill.
4
12011-03-03 Drake Wilson <drake@begriffli.ch> (tiny change) 52011-03-03 Drake Wilson <drake@begriffli.ch> (tiny change)
2 6
3 * misc.texi (emacsclient Options): Add q/quiet. 7 * misc.texi (emacsclient Options): Add q/quiet.
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index e3c0445e189..9fdccc3218d 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -271,19 +271,24 @@ keybindings. These keybindings are part of the keymap
271@node Isearch Yank 271@node Isearch Yank
272@subsection Isearch Yanking 272@subsection Isearch Yanking
273 273
274 Within incremental search, you can use @kbd{C-w} and @kbd{C-y} to grab 274 Within incremental search, @kbd{C-y} (@code{isearch-yank-kill})
275text from the buffer into the search string. This makes it convenient 275copies text from the kill ring into the search string. It uses the
276to search for another occurrence of text at point. 276same text that @kbd{C-y}, outside of incremental search, would
277normally yank into the buffer. @kbd{Mouse-2} in the echo area does
278the same. @xref{Yanking}.
277 279
278 @kbd{C-w} copies the character or word after point and adds it to 280 @kbd{C-w} (@code{isearch-yank-word-or-char}) grabs the next
279the search string, advancing point over it. (The decision, whether to 281character or word at point, and adds it to the search string. This is
280copy a character or a word, is heuristic.) 282convenient for searching for another occurrence of the text at point.
283(The decision, whether to copy a character or a word, is heuristic.)
281 284
282 @kbd{C-y} is similar to @kbd{C-w} but copies all the rest of the 285 Similarly, @kbd{M-s C-e} (@code{isearch-yank-line}) grabs the rest
283current line into the search string. If point is already at the end 286of the current line, and adds it to the search string. If point is
284of a line, it grabs the entire next line. If the search is currently 287already at the end of a line, it grabs the entire next line.
285case-insensitive, both @kbd{C-y} and @kbd{C-w} convert the text they 288
286copy to lower case, so that the search remains case-insensitive. 289 If the search is currently case-insensitive, both @kbd{C-w} and
290@kbd{M-s C-e} convert the text they copy to lower case, so that the
291search remains case-insensitive.
287 292
288 @kbd{C-M-w} and @kbd{C-M-y} modify the search string by only one 293 @kbd{C-M-w} and @kbd{C-M-y} modify the search string by only one
289character at a time: @kbd{C-M-w} deletes the last character from the 294character at a time: @kbd{C-M-w} deletes the last character from the
@@ -293,10 +298,6 @@ after point into the search string is to enter the minibuffer by
293@kbd{M-e} and to type @kbd{C-f} at the end of the search string in the 298@kbd{M-e} and to type @kbd{C-f} at the end of the search string in the
294minibuffer. 299minibuffer.
295 300
296 The character @kbd{M-y} copies text from the kill ring into the
297search string. It uses the same text that @kbd{C-y} would yank.
298@kbd{Mouse-2} in the echo area does the same. @xref{Yanking}.
299
300@node Isearch Scroll 301@node Isearch Scroll
301@subsection Scrolling During Incremental Search 302@subsection Scrolling During Incremental Search
302 303
diff --git a/etc/NEWS b/etc/NEWS
index df9884e94b1..ac7fdcbab0c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -247,6 +247,15 @@ replaced with Lisp commands `doc-file-to-man' and `doc-file-to-info'.
247 247
248* Editing Changes in Emacs 24.1 248* Editing Changes in Emacs 24.1
249 249
250** Search changes
251
252+++
253*** C-y in Isearch is now bound to isearch-yank-kill, instead of
254isearch-yank-line.
255
256+++
257*** M-s C-e in Isearch is now bound to isearch-yank-line.
258
250+++ 259+++
251** There is a new command `count-words-region', which does what you expect. 260** There is a new command `count-words-region', which does what you expect.
252 261
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0965642a0ea..e4d402afa76 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-03-06 Chong Yidong <cyd@stupidchicken.com>
2
3 * isearch.el (isearch-mode-map): Bind C-y to isearch-yank-kill,
4 and move isearch-yank-line to M-s C-e (Bug#8183).
5
12011-03-06 Alan Mackenzie <acm@muc.de> 62011-03-06 Alan Mackenzie <acm@muc.de>
2 7
3 * progmodes/cc-engine.el (c-guess-basic-syntax): Reindent. 8 * progmodes/cc-engine.el (c-guess-basic-syntax): Reindent.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 5aadac4a3b1..e13d9673514 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -464,7 +464,8 @@ This is like `describe-bindings', but displays only Isearch keys."
464 (define-key map "\C-w" 'isearch-yank-word-or-char) 464 (define-key map "\C-w" 'isearch-yank-word-or-char)
465 (define-key map "\M-\C-w" 'isearch-del-char) 465 (define-key map "\M-\C-w" 'isearch-del-char)
466 (define-key map "\M-\C-y" 'isearch-yank-char) 466 (define-key map "\M-\C-y" 'isearch-yank-char)
467 (define-key map "\C-y" 'isearch-yank-line) 467 (define-key map "\C-y" 'isearch-yank-kill)
468 (define-key map "\M-s\C-e" 'isearch-yank-line)
468 469
469 (define-key map (char-to-string help-char) isearch-help-map) 470 (define-key map (char-to-string help-char) isearch-help-map)
470 (define-key map [help] isearch-help-map) 471 (define-key map [help] isearch-help-map)