unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Key-binding without minor mode!
@ 2014-09-11 11:47 Phillip Lord
  2014-09-11 12:19 ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: Phillip Lord @ 2014-09-11 11:47 UTC (permalink / raw)
  To: help-gnu-emacs



I am trying to find what a keybinding would have been if a minor mode
had not been active, by switching the minor mode off with a let binding.
But I don't know how to find the keybinding. I have tried...

(key-binding (char-to-string last-command-event))

Works quite nicely keys such alphabetical keys, but fails for return 
which return a symbol.


I've also tried 

(key-binding (this-command-keys))
(key-binding (this-command-keys-vector))

and also sorts of other alternatives.

I'd appreciate any help!

Phil



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

end of thread, other threads:[~2014-09-15 15:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-11 11:47 Key-binding without minor mode! Phillip Lord
2014-09-11 12:19 ` Stefan Monnier
2014-09-11 14:22   ` Phillip Lord
2014-09-11 14:31     ` Stefan Monnier
2014-09-11 14:53       ` Phillip Lord
2014-09-11 18:46         ` Stefan Monnier
2014-09-12  9:50           ` Phillip Lord
2014-09-12 11:51             ` Stefan Monnier
2014-09-12 15:24               ` Phillip Lord
2014-09-12 16:56                 ` Stefan Monnier
2014-09-15 12:48                   ` Phillip Lord
2014-09-15 14:19                     ` Stefan Monnier
2014-09-15 15:58                       ` Phillip Lord

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).