unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why is this-command-keys missing?
@ 2011-01-01 18:59 Lennart Borgman
  2011-01-02  1:57 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2011-01-01 18:59 UTC (permalink / raw)
  To: Emacs-Devel devel

compilation-mode binds

    (define-key map "\t" 'compilation-next-error)

You can use TAB to go to next error because of this.

However if you hit TAB then this-command-keys will contain (something
similar to) TAB and not "\t". So you can't do

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

to get back the binding that is really active, i.e. compilation-next-error.


What are you supposed to do in a case like this to get back the key
binding compilation-next-error?



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

end of thread, other threads:[~2011-01-02 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-01 18:59 Why is this-command-keys missing? Lennart Borgman
2011-01-02  1:57 ` Stefan Monnier
2011-01-02  2:38   ` Lennart Borgman
2011-01-02  4:19     ` Stefan Monnier
2011-01-02  4:29       ` Lennart Borgman
2011-01-02 14:42         ` 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).