unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: gerd.moellmann@t-online.de (Gerd Moellmann)
Cc: emacs-devel@gnu.org
Subject: Re: scroll-bar-toolkit-scroll
Date: 02 Aug 2002 12:19:38 +0200	[thread overview]
Message-ID: <86it2t7ebp.fsf@gerd.free-bsd.org> (raw)
In-Reply-To: <200208011651.g71GpnT18694@aztec.santafe.edu>

Richard Stallman <rms@gnu.org> 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	other threads:[~2002-08-02 10:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29  1:12 scroll-bar-toolkit-scroll Richard Stallman
2002-07-29 10:51 ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-07-30  0:59   ` scroll-bar-toolkit-scroll Richard Stallman
2002-07-30  9:12     ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-07-31  5:54       ` scroll-bar-toolkit-scroll Richard Stallman
2002-07-31 11:58         ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-08-01 16:51           ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-02 10:19             ` Gerd Moellmann [this message]
2002-08-09  7:07             ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-09  7:12           ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-12 17:07             ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-12 17:14               ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-13 22:46                 ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-14 22:25                   ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-15 19:54                     ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-16 16:10                       ` scroll-bar-toolkit-scroll Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86it2t7ebp.fsf@gerd.free-bsd.org \
    --to=gerd.moellmann@t-online.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).