emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding c-h in isearch


From: Juri Linkov
Subject: Re: binding c-h in isearch
Date: Sun, 20 Apr 2008 01:49:55 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>> window.  So it is necessary to bind `same-window-buffer-names' and
>> `same-window-regexps' to nil temporarily to force displaying the Help
>> buffer in another window.
>
> That works around the problem but doesn't fix it.  You can specify
> `same-window' in special-display-regexp, for example.  Or you could
> encounter similar problems by setting display-buffer-function, etc...
> A real fix is to make sure we return to the proper window and buffer
> when we get back to the main search loop.

Currently I see no place in the main search loop to do this,
and implementing this properly would add too much complexity
to already very complex isearch mode.  So if this works in 99%
cases, I think this wourkaround would be ok.

>> +     (while (< i 256)
>> +       (define-key map (vector i) 'isearch-other-control-char)
>> +       (setq i (1+ i)))
>
> This doesn't look right.  You probably just want to use
>
>        (define-key map [t] 'isearch-other-control-char)

I tested this, and it works correctly.  Thanks for the hint.

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




reply via email to

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