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: Stefan Monnier
Subject: Re: binding c-h in isearch
Date: Thu, 17 Apr 2008 20:42:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> There's the following code in isearch.el:
>> 
>> ;; Turned off because I find I expect to get the global definition--rms.
>> ;; ;; Instead bind C-h to special help command for isearch-mode.
>> ;; (define-key map "\C-h" 'isearch-mode-help)
>> 
>> So it seems that Richard found it inconvenient.  Could someone try and
>> work out some clever way to reconcile the two functionalities?

> I think a good binding for C-h in isearch-mode would be the following:

>     (define-key isearch-mode-map "\C-h" help-map)

> I gives what Richard wants since it uses the global definition of C-h,
> and still it is intuitive to use just like its global definition when
> a minor mode is active:

> C-h m describes the isearch mode among other minor modes,

Sounds good, indeed.

Could we tweak this so it gives an info closer to what
isearch-help-mode gives?  I.e. move the info from isearch-forward's
docstring to isearch-mode's docstring, and tweka C-h m so that
isearch-mode's info comes first.


        Stefan




reply via email to

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