[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Retrieving current prefix key
From: |
Nikolaj Schumacher |
Subject: |
Re: Retrieving current prefix key |
Date: |
Thu, 07 May 2009 10:18:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin) |
Lennart Borgman <lennart.borgman@gmail.com> wrote:
> I am doing something like that in mumamo.el (part of nXhtml). Look at
> mumamo-unread-command-events there.
Thanks. I must have been blind. What I needed was indeed just
`this-command-keys.
I didn't think it would be updated immediately, since the prefix keys
don't trigger post-command-hooks, either.
Anyway, this seems to work:
;; Check if in the middle of entering a key combination.
(or (equal (this-command-keys-vector) [])
(not (keymapp (key-binding (this-command-keys-vector)))))
regards,
Nikolaj Schumacher