[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @#$! new behavior of C-b & C-f in i-search
From: |
Juri Linkov |
Subject: |
Re: @#$! new behavior of C-b & C-f in i-search |
Date: |
Wed, 19 May 2004 11:33:14 +0300 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> (define-key isearch-mode-map "\C-w" 'isearch-yank-word-or-char)
> (define-key isearch-mode-map "\M-w" 'isearch-yank-word)
> (define-key isearch-mode-map "\C-\M-w" 'isearch-del-char)
> (define-key isearch-mode-map "\C-\M-y" 'isearch-yank-char)
>
> (define-key isearch-mode-map "\C-w" 'isearch-yank-word-or-char)
> (define-key isearch-mode-map "\M-w" 'isearch-del-char)
> (define-key isearch-mode-map "\C-\M-w" 'isearch-yank-char)
> (define-key isearch-mode-map "\C-\M-y" 'isearch-yank-word)
>
> C-M-w and C-M-y might be good to use, but I suspect
> people use M-w to exit a search. It makes sense there,
> to copy the text from where the search started.
It makes no less sense to use C-w to kill the text from where the
search started, but people already know that C-w has special meaning
in isearch mode.
Anyway, it seems that C-M-w and C-M-y are sufficient, and final
key bindings could be:
(define-key isearch-mode-map "\C-w" 'isearch-yank-word-or-char)
(define-key isearch-mode-map "\C-\M-w" 'isearch-del-char)
(define-key isearch-mode-map "\C-\M-y" 'isearch-yank-char)
C-M-w is even more convenient than C-b because `isearch-del-char' and
`isearch-yank-word-or-char' are on the same `w' key, which will
allow more easily to type C-M-w when C-w grabs too much text.
--
Juri Linkov
http://www.jurta.org/emacs/
Re: @#$! new behavior of C-b & C-f in i-search, Robert J. Chassell, 2004/05/18
Re: @#$! new behavior of C-b & C-f in i-search, Richard Stallman, 2004/05/18
- Re: @#$! new behavior of C-b & C-f in i-search,
Juri Linkov <=
Re: @#$! new behavior of C-b & C-f in i-searchi, Alan Mackenzie, 2004/05/19