all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Ken Manheimer" <ken.manheimer@gmail.com>
Cc: Miles Bader <miles@gnu.org>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: identifying meta-key bound functions from last-command-char?
Date: Tue, 26 Feb 2008 21:10:56 -0500	[thread overview]
Message-ID: <jwvr6ezf8uy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <2cd46e7f0802261457k5a8f291duf3c6641a29f0aa70@mail.gmail.com> (Ken Manheimer's message of "Tue, 26 Feb 2008 17:57:25 -0500")

> as i see it, the purpose is not too obscure or unusual: deliberately
> identifying a key binding for user-entered keys from within a handler
> that's intervening in the command loop, eg, on pre-command-hook,
> overlay modification-hooks, or something like that.  last-command-char
> / last-command-event is the only data structure i found for getting
> the input, and the only details about using that are very brief, in
> 21.4, _Information from the Command Loop_.

So maybe you'd rather use (key-binding (this-command-keys-vector)) so it
also works for commands bound to multi-key sequences.


        Stefan




      reply	other threads:[~2008-02-27  2:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-26  0:30 identifying meta-key bound functions from last-command-char? Ken Manheimer
2008-02-26  2:07 ` Stefan Monnier
2008-02-26  2:21 ` Kenichi Handa
2008-02-26  2:33   ` Stefan Monnier
2008-02-26  3:59     ` Kenichi Handa
2008-02-26  4:46       ` Stefan Monnier
2008-02-26  6:08 ` Miles Bader
2008-02-26  6:28   ` Ken Manheimer
2008-02-26 15:13     ` Stefan Monnier
2008-02-26 22:57       ` Ken Manheimer
2008-02-27  2:10         ` Stefan Monnier [this message]

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=jwvr6ezf8uy.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=ken.manheimer@gmail.com \
    --cc=miles@gnu.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.