[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why is this-command-keys missing?
From: |
Lennart Borgman |
Subject: |
Why is this-command-keys missing? |
Date: |
Sat, 1 Jan 2011 19:59:26 +0100 |
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?
- Why is this-command-keys missing?,
Lennart Borgman <=