emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is this-command-keys missing?


From: Stefan Monnier
Subject: Re: Why is this-command-keys missing?
Date: Sat, 01 Jan 2011 20:57:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>     (define-key map "\t" 'compilation-next-error)
> However if you hit TAB then this-command-keys will contain (something
> similar to) TAB and not "\t".

For me it does return "\t".

>    (key-binding (this-command-keys) t)
> to get back the binding that is really active, i.e. compilation-next-error.

It does sound like you're trying to do something that's
fundamentally unreliable.  Can you explain in more detail why you want
to know "the binding that is really active"?


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]