Subject: bug#73764: format-kbd-macro returns a key name that keymap-lookup doesn't recognize

From: Eli Zaretskii <[email-masked]>
Date: Sat, 12 Oct 2024 18:18:18 +0300

> From: Andreas Schwab <[email-masked]>
> Cc: Stefan Monnier <[email-masked]>,  [email-masked],
>   [email-masked]
> Date: Sat, 12 Oct 2024 16:51:49 +0200
> 
> On Okt 12 2024, Eli Zaretskii wrote:
> 
> >> I guess we also need to make sure `format-kbd-macro` generates
> >> something that `key-valid-p` accepts.
> >
> > AFAICS, that's impossible without completely rewriting its code.  It
> > proceeds from left to right (i.e. from MSB to LSB).
> 
> The issue here is that C-h is a character on its own, unlike, say, C-+.

Right.  And in that case, the C- prefix is generated when a control
character is seen, which is at the end.