emacs-devel
[Top][All Lists]
Advanced

[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





reply via email to

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