emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Revamping sit-for


From: David Kastrup
Subject: Re: Revamping sit-for
Date: Sat, 08 Jul 2006 00:02:57 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> In the thread
>
>   address@hidden: Lingering input pending with motif menu bar]
>
> Richard has said he wanted to replace sit-for so that only actual
> Emacs Lisp events will interrupt input.  I still think this is a
> little dangerous so close to the release, but if we gotta do what we
> gotta do, I have written the necessary code for it.  It involves the
> following changes:
>
> 1. Delete the built-in function Fsit_for, and change the four places
>    in the C source code that call Fsit_for to call sit_for instead.
>
> 2. Insert a new built-in function `redisplay':

[...]

> 3. Put a new function `sit-for' in subr.el:
>
> (defun sit-for (seconds &optional nodisp obsolete)

[uses timers]

> I have tested out these changes, and observed that Emacs does not
> explode.  Richard, if you really want to do this, I can check the
> changes in so that they can get as much testing as possible before
> the pretest.

Personally, I find the changes too far-reaching to feel comfortable
about them now.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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