Subject: Re: bug#17888: 24.4.50; key binding not shown in menu item for alias command

From: Eli Zaretskii <[email-masked]>
Date: Wed, 20 Jan 2021 17:10:49 +0200

> From: Lars Ingebrigtsen <[email-masked]>
> Date: Wed, 20 Jan 2021 03:06:07 +0100
> Cc: [email-masked]
> 
> Drew Adams <[email-masked]> writes:
> 
> > (defun foo () (interactive)(message "Foo"))
> > (global-set-key "\C-o" 'foo)
> >
> > (defalias 'bar 'foo)
> > (define-key menu-bar-edit-menu [bar] '(menu-item "Do It" bar))
> >
> > In the Edit menu, the key `C-o' is not shown next to item `Do It'.
> 
> Is it supposed to?  I'm not sure whether that would be surprising or
> not.  Does anybody have an opinion?

Indeed, it isn't clear at all that the expectations in this case are
correct.