Questions tagged [event-sequence]
The event-sequence tag has no usage guidance.
4
questions
4
votes
1
answer
229
views
Process unread-command-events and redisplay
(defun pretend (keys)
(dolist (e (reverse (listify-key-sequence (kbd keys))))
(push e unread-command-events)
;; (mystery-function)
(redisplay t)
(sleep-for 0.1)))
(pretend "M-x my-...
2
votes
1
answer
477
views
How to use unread-command-events variable?
I want to generate some input from my command programmatically. I have tried using unread-command-events variable for that, see:
(defun unread_test ()
"Repeat input after toggling input method"
(...
4
votes
2
answers
141
views
Can a command determine the event sequence that invoked it?
I have a command that I would like to bind to multiple key sequences differing only in the final decimal digit (e.g. C-. 0, C-. 1, ..., C-. 9). The command needs to determine that final digit.
I ...
3
votes
0
answers
457
views
Avoiding screen flickering when one theme is disabled and another enabled (inhibit redraw???)
Is it possible to temporarily disable buffer (and frame) redraws? I particuarly mean situation, when I disable some theme and enable another one, and would like to avoid a moment when emacs flashes ...