all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.