[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: while-no-input and pending input
From: |
Michael Heerdegen |
Subject: |
Re: while-no-input and pending input |
Date: |
Wed, 26 Sep 2018 14:50:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Drew Adams <address@hidden> writes:
> Dunno whether this helps or whether it's a good idea, but this is what
> I do:
>
> (defun icicle-skip-this-command ()
> "Prevent `handle-switch-frame' from being added to `this-command'."
> (interactive)
> (setq this-command last-command))
>
> (defun icicle-handle-switch-frame (event)
> "Call `handle-switch-frame', but don't add it to `this-command'."
> (interactive "e")
> (handle-switch-frame event)
> (setq this-command last-command))
>
> (define-key global-map [handle-switch-frame] 'icicle-skip-this-command)
> (define-key global-map [switch-frame] 'icicle-handle-switch-frame))
Thanks for sharing. But it doesn't help in this case. The problem is
that the event gets in the way, not how it is processed.
Michael.
- Re: BUFFER_SWITCH_EVENT, (continued)
- Re: BUFFER_SWITCH_EVENT, Eli Zaretskii, 2018/09/25
- Re: BUFFER_SWITCH_EVENT, Eli Zaretskii, 2018/09/25
- Re: BUFFER_SWITCH_EVENT, Stefan Monnier, 2018/09/25
- Re: BUFFER_SWITCH_EVENT, Eli Zaretskii, 2018/09/26
- Re: BUFFER_SWITCH_EVENT, Stefan Monnier, 2018/09/26
Re: while-no-input interrupted by *shell*, Andreas Schwab, 2018/09/24
Re: while-no-input interrupted by *shell*, Stefan Monnier, 2018/09/24
while-no-input and pending input (was: while-no-input interrupted by *shell*), Michael Heerdegen, 2018/09/25