[Top][All Lists]

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

Re: elisp, mouse-tracking: gracefully NOT handling events

From: David Kastrup
Subject: Re: elisp, mouse-tracking: gracefully NOT handling events
Date: Tue, 29 Jun 2004 17:36:08 -0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"David Vanderschel" <address@hidden> 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

reply via email to

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