[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unreading a command key sequence
From: |
Lennart Borgman (gmail) |
Subject: |
unreading a command key sequence |
Date: |
Wed, 07 May 2008 03:43:53 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
I just had a problem with unreading a command key sequence that lead to
that Emacs looped. Looking into it I found that it is a bit non-trivial
to unread a command key sequence. I am not sure I have got every thing
correct but this is what I am using now
;; Unread the last command
(setq last-command-char nil) ;; For viper
(setq unread-command-events
(listify-key-sequence (this-command-keys-vector)))
The missing bit that lead to the looping was setting last-command-char
to nil.
Maybe something like this could be included in the manual in
(info "(elisp) Event Input Misc")?
- unreading a command key sequence,
Lennart Borgman (gmail) <=
- Re: unreading a command key sequence, Stefan Monnier, 2008/05/06
- Re: unreading a command key sequence, Lennart Borgman (gmail), 2008/05/07
- Message not available
- Re: unreading a command key sequence, Lennart Borgman (gmail), 2008/05/07
- Re: unreading a command key sequence, Stefan Monnier, 2008/05/07
- Re: unreading a command key sequence, Lennart Borgman (gmail), 2008/05/08
- Re: unreading a command key sequence, Stefan Monnier, 2008/05/08
- Re: unreading a command key sequence, Lennart Borgman (gmail), 2008/05/08
- Re: unreading a command key sequence, David Kastrup, 2008/05/08
- Re: unreading a command key sequence, Lennart Borgman (gmail), 2008/05/08