all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: xah lee <xah@xahlee.org>, 1525@debbugs.gnu.org
Subject: bug#1525: prompt string for execute-extended-command not flexible
Date: Mon, 11 Jul 2011 23:20:35 -0400	[thread overview]
Message-ID: <87aackb2ws.fsf@stupidchicken.com> (raw)
In-Reply-To: <m3ei1yff94.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Sun, 10 Jul 2011 15:15:51 +0200")

Lars Magne Ingebrigtsen <larsi@gnus.org> 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	other threads:[~2011-07-12  3:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09 22:36 bug#1525: prompt string for execute-extended-command not flexible xah lee
2011-07-10 13:15 ` Lars Magne Ingebrigtsen
2011-07-12  3:20   ` Chong Yidong [this message]
2011-07-12  3:41   ` Stefan Monnier
2011-07-12  8:51     ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aackb2ws.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=1525@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=xah@xahlee.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.