[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45536: [PATCH] Pretty-print keys without <> around modifiers
From: |
Eli Zaretskii |
Subject: |
bug#45536: [PATCH] Pretty-print keys without <> around modifiers |
Date: |
Tue, 29 Dec 2020 22:01:41 +0200 |
> From: Mattias Engdegård <mattiase@acm.org>
> Date: Tue, 29 Dec 2020 17:21:03 +0100
>
> It is a bit inconsistent that keys are described as C-x and <return> but
> <C-return>. It would be more logical to write C-<return>. The key parser will
> happily accept either, but descriptions without modifiers in <> brackets are
> more legible, and the result is easier to understand and explain.
>
> Attached is a patch which adapts the code that pretty-prints keys. This is a
> change for human consumption only; it seems unlikely to affect compatibility.
> With the patch, <C-M-backspace> is now printed as C-M-<backspace>.
IMO, making this kind of changes is just asking for trouble: the gains
are null and void (I don't see why we should care about consistency
here), while the potential for breaking something out there is very
real.