[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-transient-map: Howto avoid annoying "," in %k
From: |
Juri Linkov |
Subject: |
Re: set-transient-map: Howto avoid annoying "," in %k |
Date: |
Sun, 14 Jan 2024 09:50:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
> Function set-transient-map allows one to use %k as a format modifier
> to display the list of keys that would continue the transient, works
> well almost all the time --- except when:
>
> "," itself is a key in the transient map; at which point the message
> "Repeat with %k" turns into "Repeat with ,,." if your transient binds
> "," and ".".
>
> Not sure how to avoid the somewhat weird looking doubled ","
set-transient-map already wraps the keys with quotation marks that
makes the message more readable like this: "Repeat with ‘,’, ‘.’".
But substitute-command-keys puts the face on the keys
and therefore also removes these quotation marks.
And I don't know how it's possible to customize this
to leave these quotation marks in place.