all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* unreading a command key sequence
@ 2008-05-07  1:43 Lennart Borgman (gmail)
  2008-05-07  2:31 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Lennart Borgman (gmail) @ 2008-05-07  1:43 UTC (permalink / raw)
  To: Emacs Devel

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")?




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

end of thread, other threads:[~2008-05-08 21:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07  1:43 unreading a command key sequence Lennart Borgman (gmail)
2008-05-07  2:31 ` Stefan Monnier
2008-05-07  8:01   ` Lennart Borgman (gmail)
     [not found]     ` <jwvod7i883u.fsf-monnier+emacs@gnu.org>
2008-05-07 18:35       ` Lennart Borgman (gmail)
2008-05-08  1:43         ` Stefan Monnier
2008-05-08  8:04           ` Lennart Borgman (gmail)
2008-05-08 13:55             ` Stefan Monnier
2008-05-08 21:00               ` Lennart Borgman (gmail)
2008-05-08 21:15                 ` David Kastrup
2008-05-08 21:19                   ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.