help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Why is M-; not showing up in <lang-mode> C-h m help?


From: Michael Heerdegen
Subject: Re: Why is M-; not showing up in <lang-mode> C-h m help?
Date: Wed, 30 Oct 2013 13:00:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Sivaram Neelakantan <nsivaram.net@gmail.com> writes:

> I just noticed that M-; (comment-dwim) does not show in C-h m for the
> language/source code one is writing the script for.  Why is that?  In
> sh-mode,python mode it's not there at all.  Given that
> commenting/uncommenting is fairly common task in source editing,
> shouldn't the key map be part of the mode help too?  
>
> It does show up under C-h k but that's irrelevant to a new user of a
> language-mode.

The binding is not mode specific, it's defined in the `global-map'.
With other words, there are no different `comment-dwim' commands for
every major mode, there is only one general `comment-dwim' working for
all correctly defined major modes.

C-h m describes only mode specific bindings; that's why the binding
doesn't show up there.


Regards,

Michael.




reply via email to

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