[Python-mode] Don't bind C-c C-h

Reinout van Rees reinout at vanrees.org
Fri Mar 19 15:58:49 CET 2010

On 03/19/2010 03:34 PM, Barry Warsaw wrote:
> On Mar 19, 2010, at 11:07 AM, Reinout van Rees wrote:
>> ctrl-h *is* sadly the logical key for some help-related function.  Would
>> "ctrl-c h" be an alternative?
> Hi Reinout.  Is that defined in an Emacs Lisp standard somewhere?  I'm having
> a hard time finding /any/ other mode where C-c C-h is bound to anything
> (mail-mode and shell-mode are two others I've checked).

Hm. It is apparently not as clear-cut as I always took it to be.  Emacs' 
info (for instance 
http://www.chemie.fu-berlin.de/chemnet/use/info/emacs/emacs_11.html ):

   C-h or F1 means "help" in various other contexts as well. For
   example, in query-replace, it describes the options available.
   After a prefix key, it displays a list of the alternatives that
   can follow the prefix key. (A few prefix keys don't support this
   because they define other meanings for C-h.)

So it *is* apparently OK to use ctrl-h in other meanings!

But ctrl-c ctrl-h seems to work in every mode I just tested it on: it 
gives a nice overview of possible keys.

I know most basic keybindings, but the particulars of all those major 
modes... That's what ctrl-c ctrl-h is for.

Similarly the version control (minor?) mode: ctrl-x v ctrl-h ("what was 
the annotate/blame/praise command again?")

And I just discovered that the "emacs starter kit" I'm using has 
re-bound ctrl-x ctrl-h to some open-a-url function, sigh :-)


Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org
Programmer at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"

More information about the Python-mode mailing list