bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1525: prompt string for execute-extended-command not flexible


From: Chong Yidong
Subject: bug#1525: prompt string for execute-extended-command not flexible
Date: Mon, 11 Jul 2011 23:20:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> (local-set-key [(meta z)] 'execute-extended-command)
>
> Then you still get "M-x" as the prompt if you do `M-z'.
>
> The reason is that it looks up the command first, and then picks one of
> the bindings as the description, with code that's kinda like this:
>
> (key-description (car (where-is-internal 'execute-extended-command)))
>
> Is there any reason it doesn't just use this_command_keys which
> presumably would be more correct?

OTOH, you might get into a tricky situation if execute-extended-command
was launched by, say, a mouse event.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]