emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]