emacs-devel
[Top][All Lists]
Advanced

[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 12:32:45 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Miles Bader <address@hidden> writes:
> Juri Linkov <address@hidden> writes:
>>      (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.
>
> Perhaps, but the mnemonics are pretty bizarre -- C-w adds _adds_ a word,
> but C-M-w _deletes_ a char?

There is not too much choice for good mnemonics in such extremely limited
decision space.

But C-M-w still makes sense because C-w not only adds a word, but also
a character (`isearch-yank-word-or-char').

And binding C-M-y to `isearch-yank-char' will have the same mnemonics
as C-y for `isearch-yank-line' (where `y' supposedly means `yank').

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]