From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rajneesh Hegde Newsgroups: gmane.emacs.help Subject: Re: customizing double click Date: Sat, 13 Aug 2005 09:18:09 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1123940660 8030 80.91.229.2 (13 Aug 2005 13:44:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2005 13:44:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 15:44:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3wHw-0005KW-UN for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Aug 2005 15:43:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3wLD-0001oH-FC for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Aug 2005 09:46:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3w6O-0008FX-LB for help-gnu-emacs@gnu.org; Sat, 13 Aug 2005 09:31:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3w6C-0008BS-5q for help-gnu-emacs@gnu.org; Sat, 13 Aug 2005 09:30:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3w67-000846-4v for help-gnu-emacs@gnu.org; Sat, 13 Aug 2005 09:30:51 -0400 Original-Received: from [64.233.184.198] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3w8e-0007O2-KK for help-gnu-emacs@gnu.org; Sat, 13 Aug 2005 09:33:28 -0400 Original-Received: by wproxy.gmail.com with SMTP id i23so915104wra for ; Sat, 13 Aug 2005 06:18:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GXDn+209LirqYZa7+xT4+ewXOI4sV/pDU28uHFsdrBZQw1fMnEDcxngfA9rZQY85MwVKrsysW9NF4hxEy8dF1Ouli1Ml9Jk77fiQFhDEF4Lt+28FToRcRcDj6PMs4k1pqUs/gQU89oKOGDRhY8X9S2tjVBuqVT8E61GlSbetvSg= Original-Received: by 10.54.143.7 with SMTP id q7mr2525079wrd; Sat, 13 Aug 2005 06:18:09 -0700 (PDT) Original-Received: by 10.54.122.12 with HTTP; Sat, 13 Aug 2005 06:18:09 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: Content-Disposition: inline X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28697 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28697 > Does the following excerpt from the ELisp manual help you understand > the issue? yeah, I think I understand that part, but can't figure out why my customizing isn't working. When I rebind [double-down-mouse-1] to my function, it gets executed on a double click (from the double-down event) but the subsequent double-mouse-1 (click) event doesn't have its usual selection effect. It seems that event does get generated, though, because a debugging message I put in my function dimmediately isappears from the echo area (presumably because of the double-mouse-1 event). However, what's more puzzling is that when I rebind=20 [double-mouse-1] to my function, the double-down event should run mouse-drag-region (as it gets demoted to a down-mouse-1 event) but then the double-mouse (click) event should still run my function. But it doesn't seem to, because debugging messages in the function don't get printed. (I checked the *Messages* buffer.) >=20 > Before the double-click or double-drag event, Emacs generates a > "double-down" event when the user presses the button down for the > second time. Its event type contains `double-down' instead of just > `down'. If a double-down event has no binding, Emacs looks for an > alternate binding as if the event were an ordinary button-down event. > If it finds no binding that way either, the double-down event is > ignored. >=20 > To summarize, when you click a button and then press it again right > away, Emacs generates a down event and a click event for the first > click, a double-down event when you press the button again, and finall= y > either a double-click or a double-drag event. >=20 >=20 > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >