all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles.bader@necel.com>
To: "Ken Manheimer" <ken.manheimer@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: identifying meta-key bound functions from last-command-char?
Date: Tue, 26 Feb 2008 15:08:38 +0900	[thread overview]
Message-ID: <buotzjws109.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <2cd46e7f0802251630h2cc2ae5di1d77ed3b87611416@mail.gmail.com> (Ken Manheimer's message of "Mon, 25 Feb 2008 19:30:49 -0500")

"Ken Manheimer" <ken.manheimer@gmail.com> writes:
> the problem is that, for meta-modified keys,
>
>   (characterp last-command-char) => nil
>
> this breaks an approach like:
>
>   (key-binding (char-to-string last-command-char))

It wants a vector, so give it a vector:

  (key-binding (vector last-command-char))

-Miles

-- 
Discriminate, v.i. To note the particulars in which one person or thing is,
if possible, more objectionable than another.




  parent reply	other threads:[~2008-02-26  6:08 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 [this message]
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

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=buotzjws109.fsf@dhapc248.dev.necel.com \
    --to=miles.bader@necel.com \
    --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.