Subject: bug#62626: 29.0.60; describe-key errors on Edit → Paste from Kill Ring → [any item]

From: Eli Zaretskii <[email-masked]>
Date: Sat, 08 Apr 2023 20:13:25 +0300

> From: Stefan Monnier <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Sat, 08 Apr 2023 11:42:40 -0400
> 
> > Aren't those integer indices the reason why the recipe below:
> >
> >   emacs -Q
> >   M-x context-menu-mode RET
> >   Type "foobar" and kill it
> >   C-h k and right click, then "Paste from Kill Menu", then select string
> >   Observe the help buffer claims the key sequence was:
> >     <down-mouse-3> <paste-from-menu> C-a
> >                                      ^^^
> > shows the bogus "C-a" at the end of the sequence?
> 
> Indeed.  We should probably use something
> like (intern (format "entry-%d" i)) to avoid confusion.

Done.

> `context-menu-mode` code has a few other differences with the "normal"
> menu (e.g. it fails to truncate long strings, etc...), so we should
> consolidate the two codes to keep the best of each.

Well, each of these two approaches has its ugly aspects, so...