From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: elisp, mouse-tracking: gracefully NOT handling events Date: 08 Jun 2004 23:52:41 +0200 Organization: Organization?!? Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088534893 15209 80.91.224.253 (29 Jun 2004 18:48:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 18:48:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 20:48:04 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfNeF-0002WM-00 for ; Tue, 29 Jun 2004 20:48:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfNfv-000550-Bf for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 14:49:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: news.uni-berlin.de qdQYQ5AEV9UlGfMz6N2YrgvBmz32+gCgcmbS5TOua48U+HGoAy X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:123697 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19065 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19065 "David Vanderschel" 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