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: Fri, 3 Dec 2004 09:22:12 -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 1102094567 15039 80.91.229.6 (3 Dec 2004 17:22:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2004 17:22:47 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 03 18:22:41 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 1CaH8j-00019T-00 for ; Fri, 03 Dec 2004 18:22:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHIK-0006hy-Oz for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2004 12:32:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaHI6-0006f6-PE for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:32:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaHI4-0006eL-Ov for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:32:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHI4-0006eB-M9 for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:32:20 -0500 Original-Received: from [141.146.126.231] (helo=agminet04.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CaH8J-0002as-GO for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:22:15 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.191.11]) by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB3HMD9K029474; Fri, 3 Dec 2004 09:22:13 -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 iB3HMDf6020409; Fri, 3 Dec 2004 10:22:13 -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 iB3HMCSV020399; Fri, 3 Dec 2004 10:22:13 -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:30640 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30640 > I'm not asking how mouse events work. > I'm asking about recommended practice. The essence of my answer was: Which event should be bound basically depends on when the action is supposed to happen. Of course. My question was: when, besides when you want to work around a bound drag (or other motion) event, would one bind *down-mouse* instead of *mouse*? That is the only case mentioned in the doc, for when you would want the action to take place on button release instead of button press. But it doesn't appear to be the only case where *down-mouse* is bound instead of *mouse*. To take the specific example I gave, why is `mouse-set-font' bound to S-down-mouse-1 instead of being bound to S-mouse-1? I see no mouse motion involved in that example. Luc has indicated a reason involving changing mouse position (motion), but it's not yet clear to me. - Drew