Subject: bug#50804: Command substitutions for keys without keymaps

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 26 Sep 2021 08:58:42 +0200

Stefan Kangas <[email-masked]> writes:

> It would be nice if we could have some way of putting a face on such key
> bindings, without having to fiddle with propertize.  For example:
>
>     (message (substitute-command-keys
>               (concat "\\[[C-h]] or \\[[?]] for more options;
> \\[[SPC]] to leave "
>                       "unchanged, Character to replace word"))))

Makes sense to me.

> 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.

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