unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31388: 27.0.50; message-mode hard-codes key bindings in docstring
@ 2018-05-08 19:06 Basil L. Contovounesios
  2018-05-08 19:11 ` Basil L. Contovounesios
  0 siblings, 1 reply; 4+ messages in thread
From: Basil L. Contovounesios @ 2018-05-08 19:06 UTC (permalink / raw)
  To: 31388; +Cc: Lars Ingebrigtsen

The docstring of message-mode currently hard-codes the bindings provided
by message-mode-map.  For example:

1. emacs -Q
2. Evaluate:
   (with-eval-after-load 'message
     (define-key message-mode-map "\C-c\C-c" #'ignore))
3. C-x m
4. C-c ?

still reports "C-c C-c  ‘message-send-and-exit’".

Is this intentional?  I realise that this affords summary, custom
layout, and descriptions of the available bindings, but isn't it
confusing to report the wrong thing in the case that users customise
(or use packages which customise) their bindings?

One solution is to replace the hard-coded bindings with
\[command]-sequences; another to replace the whole listing with
\{message-mode-map}.  In both cases, the binding listed for
message-insert-or-toggle-importance will be C-c C-u instead of
C-c C-f C-i, due to the higher precedence of the former.  WDYT?

P.S. I have, over time, accumulated a set of 12 patches for message.el
     with refactors such as defining message-mode-map in a single
     (let ...)  calculation, replacing '-quotes with #'-quotes where
     applicable, removing calls to mapcar where the result is unused,
     adding tests, etc.  I also have a couple of minor and relevant
     questions to ask.  Would patches of this nature be welcome?  If so,
     should I send them here, submit a new bug report, or send mail to
     emacs-devel?

Thanks,

-- 
Basil





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-13 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-08 19:06 bug#31388: 27.0.50; message-mode hard-codes key bindings in docstring Basil L. Contovounesios
2018-05-08 19:11 ` Basil L. Contovounesios
2019-05-13 21:06   ` Lars Ingebrigtsen
2019-05-13 23:05     ` Basil L. Contovounesios

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).