emacs-devel
[Top][All Lists]
Advanced

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

\\{foo-mode-map}


From: Lars Ingebrigtsen
Subject: \\{foo-mode-map}
Date: Fri, 29 Oct 2021 20:43:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

`C-h m' displays the doc string of the current major mode.  It does not
output the mode map -- unless the programmer has put \\{foo-mode-map}
into the doc string.  Many modes do not, which means that the user has
to rely on `C-h b' to try to find out what the available commands are.
Which isn't optimal.

I think it might be a good idea to change `C-h m' so that it always
outputs the major mode map.  That is, if the doc string already does so,
it shouldn't output it again, but if the doc string doesn't, then output
the major mode map after the doc string.

And then we could stop encouraging that these doc strings include
\\{foo-mode-map}.

Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

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