GNU bug report logs - #50804
Command substitutions for keys without keymaps

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Sat, 25 Sep 2021 18:02:01 UTC

Severity: wishlist

Tags: patch

Fixed in version 29.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 50804 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 50804 <at> debbugs.gnu.org
Subject: Re: bug#50804: Command substitutions for keys without keymaps
Date: Mon, 27 Sep 2021 17:41:51 -0700
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> I'm not sure about the notation.  Perhaps "\\[[...]]" is okay, or
>> perhaps we want some other delimiter.
>
> What about...  \\`C-h'
>
> Hm.  Possibly too confusing.

Using some other delimiters than "\\[]" would probably be nice though,
because:

    (substitute-command-keys "\\[[C-h]]")
    => "M-x [C-h]"

    (substitute-command-keys "\\`C-h`")
    => "\\‘C-h‘"

The second one will be printed as "\‘C-h‘" on old versions, which isn't
perfect but not too bad.  Even if the extra "\" is distracting, it is at
least not actively misleading...




This bug report was last modified 3 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.