From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "David Vanderschel" Newsgroups: gmane.emacs.help Subject: Re: controlling echo during mouse-dragging Date: Thu, 24 Jun 2004 22:52:22 GMT Organization: Road Runner High Speed Online http://www.rr.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <873c4m7zlq.fsf@indigo.shootybangbang.com> <87acyt2c3j.fsf@indigo.shootybangbang.com> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1088538483 26590 80.91.224.253 (29 Jun 2004 19:48:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:48:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:47:47 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 1BfOa2-0000Lv-00 for ; Tue, 29 Jun 2004 21:47:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfObi-0005FF-Eo for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:49:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!216.196.106.140!border1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone.austin.rr.com!fe2.texas.rr.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Original-NNTP-Posting-Host: 66.68.174.193 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: fe2.texas.rr.com 1088117542 66.68.174.193 (Thu, 24 Jun 2004 17:52:22 CDT) Original-NNTP-Posting-Date: Thu, 24 Jun 2004 17:52:22 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:123943 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:19303 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19303 "John Paul Wallington" wrote in message news:<87acyt2c3j.fsf@indigo.shootybangbang.com>... > "David Vanderschel" writes: > > >> > Is there any way I can prevent that uninformative "down-mouse-2-" > >> > echo from obliterating my infrequent attempts at informing the user? > > > >> Try binding `echo-keystrokes' to 0. > > > > OK, I tried that. I made echo-keystrokes buffer-local > > and set it to 0. > > Hm. I meant `let' binding it when appropriate, but maybe that's > tricky -- No. A let binding would have been OK also; but this is a buffer which is read-only to the user and over which my program exerts full control. It made just as much sense to set it once and for all during initialization. I never want to see those echoes for the buffer this program is managing. I was happy to learn about the echo-keystrokes variable. >are you tracking the mouse yourself or binding >commands to drag events, or something else ? I have implemented my own track-mouse loop. (It is tricky to get right!) > > So I still have an obliteration problem; and now I do > > not even know what is causing it. > Please post some example code, preferably pared-down to essentials, > that demonstrates the problem. Actually, I am close to giving up now. I think I understand the problem. The fact is that any message in the echo area is erased on occurrence of the next input event. Normally mouse movement is not treated as an event, so one is not used to it causing erasure in the echo area. However, having invoked track-mouse, I am saying that mouse movement _is_ an event, so the echo area gets erased every time the cursor moves to a new character position. I do not see how to get around it. There is one thing I could hope: namely to get control of the string that emacs is using, for example, to display the useless "down-mouse-1-" indication when I am allowing it. That is not even a "message" in the sense that it is logged in the *Messages* buffer - which is good as far as I am concerned. Regards, David V.