From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: when to bind *down-mouse* vs *mouse*? Date: Thu, 2 Dec 2004 17:26:15 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102037208 5758 80.91.229.6 (3 Dec 2004 01:26:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2004 01:26:48 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 03 02:26:44 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 1Ca2Db-0006OK-00 for ; Fri, 03 Dec 2004 02:26:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ca2NB-0003oq-DA for ged-emacs-devel@m.gmane.org; Thu, 02 Dec 2004 20:36:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Ca2Mv-0003oi-Hi for emacs-devel@gnu.org; Thu, 02 Dec 2004 20:36:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Ca2Mu-0003oE-PP for emacs-devel@gnu.org; Thu, 02 Dec 2004 20:36:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ca2Mu-0003o4-FE for emacs-devel@gnu.org; Thu, 02 Dec 2004 20:36:20 -0500 Original-Received: from [141.146.126.229] (helo=agminet02.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Ca2DE-0003dq-9L for emacs-devel@gnu.org; Thu, 02 Dec 2004 20:26:20 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.191.11]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB31QHxH004526; Thu, 2 Dec 2004 17:26:18 -0800 Original-Received: from rgmgw2.us.oracle.com (localhost [127.0.0.1]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB31QH1c022998; Thu, 2 Dec 2004 18:26:17 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id iB31QHeV022985; Thu, 2 Dec 2004 18:26:17 -0700 Original-To: "Andreas Schwab" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30621 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30621 *Note Rebinding Mouse Buttons: (emacs)Mouse Buttons, for an explanation of how the mouse events work. Which event should be bound basically depends on when the action is supposed to happen. If you press a mouse button you get a down event. If you release the button you get a click event (no modifier). If you move the mouse while pressing a button you get a drag event. Double and triple click events are generated when you release and press a button (twice for triple click) in less than double-click-time without moving the mouse. Note that all those events are actually generated, but some are discarded if unbound. Thanks, but that doesn't respond to my question, unfortunately. As I mentioned, I already read the doc in the Emacs and Elisp manuals. I'm not asking how mouse events work. I'm asking about recommended practice. - Drew