* elisp, mouse-tracking: gracefully NOT handling events
@ 2004-06-08 19:38 David Vanderschel
2004-06-08 21:52 ` David Kastrup
0 siblings, 1 reply; 3+ messages in thread
From: David Vanderschel @ 2004-06-08 19:38 UTC (permalink / raw)
I have a program in which I am using track-mouse. It
turns out that mouse events are not the only events
you can get in a track-mouse loop. My program is not
prepared to handle all of them. (I don't know how
many other potential event types there are in this
context, but I am sure that I do not want to learn how
to properly treat all of them.) In the face of an
event my program does not understand, it can and does
abort its current operation with no difficulty.
(Indeed, that is a normal sort of occurrence for other
reasons as well.) However, it may be that such an
unrecognized event could occur, the event is
significant, and failure to deal with it could be
harmful to the 'system'. It seems to me that I need a
system function to call when I don't know what to do
with an event. The idea is, "Take this event. I did not
know what to do with it, so please do with it
whatever you would have done with it had I not been in
a track-mouse loop." Is there such a function?
(Failing that, it seems like there ought to be a way
to tell the system which types of events you are
prepared to handle in a track-mouse loop so you won't
get events you don't understand.)
Regards,
David V.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: elisp, mouse-tracking: gracefully NOT handling events
2004-06-08 19:38 elisp, mouse-tracking: gracefully NOT handling events David Vanderschel
@ 2004-06-08 21:52 ` David Kastrup
2004-06-09 16:36 ` David Vanderschel
0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2004-06-08 21:52 UTC (permalink / raw)
"David Vanderschel" <DJV4@Austin.RR.com> writes:
> I have a program in which I am using track-mouse. It
> turns out that mouse events are not the only events
> you can get in a track-mouse loop. My program is not
> prepared to handle all of them. (I don't know how
> many other potential event types there are in this
> context, but I am sure that I do not want to learn how
> to properly treat all of them.) In the face of an
> event my program does not understand, it can and does
> abort its current operation with no difficulty.
> (Indeed, that is a normal sort of occurrence for other
> reasons as well.) However, it may be that such an
> unrecognized event could occur, the event is
> significant, and failure to deal with it could be
> harmful to the 'system'. It seems to me that I need a
> system function to call when I don't know what to do
> with an event. The idea is, "Take this event. I did not
> know what to do with it, so please do with it
> whatever you would have done with it had I not been in
> a track-mouse loop." Is there such a function?
(push event unread-command-events)
And return to the command loop.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: elisp, mouse-tracking: gracefully NOT handling events
2004-06-08 21:52 ` David Kastrup
@ 2004-06-09 16:36 ` David Vanderschel
0 siblings, 0 replies; 3+ messages in thread
From: David Vanderschel @ 2004-06-09 16:36 UTC (permalink / raw)
"David Kastrup" <dak@gnu.org> wrote in message
news:x5fz95vhsm.fsf@lola.goethe.zz...
> "David Vanderschel" <DJV4@Austin.RR.com> writes:
> > ... The idea is, "Take this event. I did not
> > know what to do with it, so please do with it
> > whatever you would have done with it had I not been in
> > a track-mouse loop." Is there such a function?
>
> (push event unread-command-events)
>
> And return to the command loop.
Ahhh! And now I can find the documentation for it too! ;-)
Thanks,
David V.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-09 16:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 19:38 elisp, mouse-tracking: gracefully NOT handling events David Vanderschel
2004-06-08 21:52 ` David Kastrup
2004-06-09 16:36 ` David Vanderschel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.