emacs-devel
[Top][All Lists]
Advanced

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

Re: scroll-bar-toolkit-scroll


From: Gerd Moellmann
Subject: Re: scroll-bar-toolkit-scroll
Date: 02 Aug 2002 12:19:38 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Richard Stallman <address@hidden> writes:

>     I've used x_send_scroll_bar_event to "translate" the invocation of the
>     scroll bar callback to an X event that is handled in XTread_socket
>     like other events.  This seemed to be the easiest way to orderly
>     produce a scroll bar input event in the kdb queue because I saw no way
>     to predict when the callback is called (asynchronously).
> 
> Why not just insert the desired event into the Emacs event queue?
> That can be done at any time, asynchronously.

I think it's easier the way it is, where there's only one place where
input events are stored to the queue.

For example, should the callback be invoked from XTread_socket, in the
course of an event that's dispatched from XTread_socket to the scroll
bar widget, XTread_socket's local variable numchars had to be
decremented if the callback itself pushed something on the queue.




reply via email to

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