GNU bug report logs -
#32212
26; `subword-mode' doc string shows empty key-binding list
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Thu, 19 Jul 2018 15:12:01 UTC
Severity: minor
Tags: confirmed, fixed, patch
Found in version 25.1
Fixed in version 26.2
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 32212 <at> debbugs.gnu.org (full text, mbox):
On 2018-07-23 13:01, Drew Adams wrote:
>> Would it be better if the \\{some-keymap} substitution handled the
>> case where there were no bindings, and printed nothing?
>
> No. A doc string can introduce the list of bindings any
> way its author wants. We cannot predict what text might
> precede or follow the text \\{some-keymap}.
Ah, yes, agreed -- a search shows quite a variety of such introductory
phrases:
"The following key bindings are currently in effect in the buffer:"
"Customized bindings may be defined in `ielm-map', which currently
contains:"
"The following commands are available:"
"In addition to Emacs-Lisp Mode, the following commands are available:"
"Keys specific to Follow mode:"
"Instead these commands are provided:"
"In the browser, use the following keys:"
"Key bindings:"
"Special commands:"
"The keymap for this second window is:"
"Commands:"
"Tree mode key bindings:"
"Key definitions:"
"Commands:"
"Here are all keybindings."
etc, etc...
I think there's a lot of unnecessary inconsistency here which would
probably benefit from a common phrasing. That could feasibly be
provided via an alternative variant of the \\{...} syntax (at which
point it could make more sense to include some automated variations
for edge cases), but that all sounds like more trouble than it's
worth, so I'm not really suggesting that this should be done (even
if it strikes me as a "nice to have").
-Phil
This bug report was last modified 6 years and 300 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.