[Top][All Lists]

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

Re: w3 under development or not?

From: Stefan Monnier
Subject: Re: w3 under development or not?
Date: Wed, 12 Nov 2003 13:59:40 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I think this discussion refers to the function url-retrieve-synchronously,
> where the following piece of code can be found:

>       ;; Quoth monnier:
>       ;; It turns out that the problem seems to be that the (sit-for
>       ;; 0.1) below doesn't actually process the data: instead it
>       ;; returns immediately because there is keyboard input
>       ;; waiting, so we end up spinning endlessly waiting for the
>       ;; process to finish while not letting it finish.

>       ;; (sit-for 0.1)
>       (sleep-for 0.1))

> Your change did not resolve the problem completely, so I changed it to
> (sit-for 0 250) followed by (discard-input). I am not sure if it is a

That sounds interesting.  Are you saying that you not only see hangs with
my code but you also see hangs with the old code (in the only case I've
heard of where someone had trouble with my version of the above code,
that smeone also said that reverting my change fixed his problem).
Maybe instead of discard-input we could do something like

      (while (input-pending-p)
        (push (read-event) w3-temp-read-events))

and then push those events back onto unread-command-events when the whole
thing is done ?

Still, it seems the problem is revealing a bug in the underlying C code,
and it would be even better to fix that one.


reply via email to

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