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: Sun, 14 Aug 2005 23:52:55 -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 1124079005 5406 80.91.229.2 (15 Aug 2005 04:10:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 04:10:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 06:10:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4WHZ-0001bg-5O for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Aug 2005 06:09:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4WKu-0001yo-PU for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Aug 2005 00:12:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4W9l-0000BZ-6Z for help-gnu-emacs@gnu.org; Mon, 15 Aug 2005 00:01:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4W9S-0008V7-Bf for help-gnu-emacs@gnu.org; Mon, 15 Aug 2005 00:00:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4W9R-0008UP-Uo for help-gnu-emacs@gnu.org; Mon, 15 Aug 2005 00:00:41 -0400 Original-Received: from [64.233.184.201] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E4WH8-0000gJ-5b for help-gnu-emacs@gnu.org; Mon, 15 Aug 2005 00:08:38 -0400 Original-Received: by wproxy.gmail.com with SMTP id 71so946899wra for ; Sun, 14 Aug 2005 20:52:55 -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=jwsNgAup2PWjyTMHyuHfErQmUo1MInllL+FdZSXaSAXLRztrvv/rVlpKH1OmO5MqBxHgueY8BknpmjHBRol4XSxcA0aLuiVz1Mq0gul88q+AQPEJGMWIBuzkltZ+otP3iJRtllMHxYyJAfsq4HYVgBJoc2C6MLFzt78HM4IANrI= Original-Received: by 10.54.23.8 with SMTP id 8mr3356203wrw; Sun, 14 Aug 2005 20:52:55 -0700 (PDT) Original-Received: by 10.54.122.12 with HTTP; Sun, 14 Aug 2005 20:52:55 -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:28728 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28728 > 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. ok, I've resolved this issue: (defun my-LaTeX-forward-search (event) "Set point to the position of the mouse pointer and then call the function TeX-view from AucTeX." (interactive "e") (if (and (numberp (posn-point (event-start event))) (looking-at "\\W")) (TeX-view) (mouse-drag-region event))) i.e. if the click is on a word-constituent character, call mouse-drag-region with this event (i.e. the double-down event). I'm not sure why this should work though, as I didn't figure out the code for mouse-drag-region.