[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] master 22ebc3a 34/68: ace-window.el (aw--doit): use map with
From: |
Stefan Monnier |
Subject: |
Re: [elpa] master 22ebc3a 34/68: ace-window.el (aw--doit): use map with most priority |
Date: |
Sun, 22 Mar 2015 10:34:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> + (define-key map [t] 'ace-jump-done)
> + (if (fboundp 'set-transient-map)
> + (set-transient-map map)
The whole idea behind set-transient-map is that you can avoid the [t]
binding. If you need to run code "at the end" can use the `on-exit'
argument.
The reason why we want to avoid [t] bindings is that these typically
force you to read an event and push it back on unread-command-events,
and this basically can't be done 100% reliably.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [elpa] master 22ebc3a 34/68: ace-window.el (aw--doit): use map with most priority,
Stefan Monnier <=