[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Lingering input pending with motif menu bar]
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: Lingering input pending with motif menu bar] |
Date: |
Wed, 05 Jul 2006 11:04:59 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Chong Yidong <address@hidden> writes:
> The trouble is that sit-for is widely-used in the Emacs sources,
> particularly (sit-for 0) for forcing redisplay. There is apparently a
> need for a routine that waits for a set time, and stops if and only if
> there is an Emacs Lisp input event available, which is not an exact
> match for what `sit-for' does. So how about putting this macro into
> timer.el? We can change individual existing `sit-for' calls to use
> this if necessary (e.g. in Hanoi), and avoid destabilizing the tree at
> this stage of the release.
I agree this change is too risky to put into sit-for now.
> It does not get interrupted by moving the mouse over a toolbar
> button, unlike sit-for.
Excellent!
>
> (defmacro wait-for-input (seconds)
Why is it a macro?
IMO, it should be a defun and placed in subr.el.
Also, why not add a NODISP arg (similar to sit-for) and change the
code to call (sit-for -1) on entry if NODISP is nil.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: address@hidden: Lingering input pending with motif menu bar], (continued)
- Re: address@hidden: Lingering input pending with motif menu bar], Chong Yidong, 2006/07/03
- Re: address@hidden: Lingering input pending with motif menu bar], Kim F. Storm, 2006/07/04
- Re: address@hidden: Lingering input pending with motif menu bar], Chong Yidong, 2006/07/04
- Re: address@hidden: Lingering input pending with motif menu bar], Richard Stallman, 2006/07/04
- RE: address@hidden: Lingering input pending with motifmenu bar], Drew Adams, 2006/07/04
- Re: address@hidden: Lingering input pending with motifmenu bar], Richard Stallman, 2006/07/05
- RE: address@hidden: Lingering input pending withmotifmenu bar], Drew Adams, 2006/07/05
- Re: address@hidden: Lingering input pending withmotifmenu bar], Richard Stallman, 2006/07/07
- Re: address@hidden: Lingering input pending with motifmenu bar], Richard Stallman, 2006/07/05
- Re: address@hidden: Lingering input pending with motif menu bar], Chong Yidong, 2006/07/04
- Re: address@hidden: Lingering input pending with motif menu bar],
Kim F. Storm <=
- RE: address@hidden: Lingering input pending with motifmenu bar], Drew Adams, 2006/07/04
Revamping sit-for [Was: Lingering input pending with motif menu bar], Chong Yidong, 2006/07/07
- Re: Revamping sit-for, David Kastrup, 2006/07/07
- RE: Revamping sit-for [Was: Lingering input pending with motif menu bar], Drew Adams, 2006/07/07
- Re: Revamping sit-for, Chong Yidong, 2006/07/07
- RE: Revamping sit-for, Drew Adams, 2006/07/07
- Re: Revamping sit-for, Chong Yidong, 2006/07/08
- Re: Revamping sit-for, David Kastrup, 2006/07/08
- Re: Revamping sit-for, Romain Francoise, 2006/07/08
- Re: Revamping sit-for, Stefan Monnier, 2006/07/08