unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* identifying meta-key bound functions from last-command-char?
@ 2008-02-26  0:30 Ken Manheimer
  2008-02-26  2:07 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ken Manheimer @ 2008-02-26  0:30 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

in a recent emacs build a technique i've been using to deliberately fetch
key bindings according to the last-command-char is failing for meta-modified
keys.  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))

i need some way to fetch bindings according to last-command-char for a
special key handler that i use in overlays and, (for example) in
allout.elallout-hotspot-key-handler, a pre-command-hook function.
though probably
overly complicated, it has worked through the released emacs 22.  in the
recent cvs build (23.0.60), i get an error:

  wrong-type-argument characterp 134217760

(that's for "\M- " meta space, but the same things happens for other meta
keys.)  i'm failing to figure out how to translate the meta-modified key to
something that i can use for key-binding, and presume i'm missing something
obvious.  can someone steer me in the right direction?

(incidentally, i've  been unable to build todays HEAD checkout throughout
the day:
  doc-view.el:770:43:Error: Wrong number of arguments: #[nil "\300\207"
[(image-mode-window-get (quote page))] 1], 1
)
-- 
ken
http://myriadicity.net

[-- Attachment #2: Type: text/html, Size: 1439 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-27  2:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).