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: Tue, 18 May 2004 09:05:54 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Miles Bader <address@hidden> writes:
> Grrrrrrrr....

I noticed this problem too.  One solution is to always retain
one character in the search string.  Another solution is to
exit isearch when C-b is typed with the empty isearch string.

But still apparently C-b and C-f can't be made fully transparent
as motion keys, because they change the search string when users
use them as motion keys in isearch mode and don't expect that
they will change the search history.

So other key bindings are needed.  I already proposed some of them:

    (define-key isearch-mode-map "\C-w"    'isearch-yank-word)
    (define-key isearch-mode-map "\C-\M-w" 'isearch-yank-word-or-char)
    (define-key isearch-mode-map "\C-\M-b" 'isearch-del-char)
    (define-key isearch-mode-map "\C-\M-f" 'isearch-yank-char)

    (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)

The last group seems most preferable since these key are less probable
to be used in isearch mode.

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





reply via email to

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