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:25 -0800 Message-ID: References: <200412030200.iB320CV26568@raven.dms.auburn.edu> 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 1102094629 15222 80.91.229.6 (3 Dec 2004 17:23:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2004 17:23:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 03 18:23:32 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 1CaH9X-0001Fj-00 for ; Fri, 03 Dec 2004 18:23:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHJ8-00074T-Rn for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2004 12:33:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaHIR-0006pG-Rj for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:32:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaHIP-0006oR-UJ for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:32:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHIP-0006oK-IB for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:32:41 -0500 Original-Received: from [148.87.2.204] (helo=inet-mail4.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CaH8l-0002i5-LC for emacs-devel@gnu.org; Fri, 03 Dec 2004 12:22:43 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.191.10]) by inet-mail4.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB3HMRAh025165; Fri, 3 Dec 2004 09:22:33 -0800 (PST) Original-Received: from rgmgw1.us.oracle.com (localhost [127.0.0.1]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB3HMSgp005514; Fri, 3 Dec 2004 10:22:28 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id iB3HMPvH005416; Fri, 3 Dec 2004 10:22:28 -0700 Original-To: "Luc Teirlinck" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <200412030200.iB320CV26568@raven.dms.auburn.edu> 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:30641 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30641 However, some of the standard bindings seem contradictory - S-down-mouse-1 is bound to mouse-set-font. - M-mouse-2 is bound to mouse-yank-secondary. Can someone clear this up for me? What is the recommendation? What is the logic behind mouse bindings for click events? Are some of the standard bindings inconsistent, or am I just missing something? I do not see any inconsistency in the above. S-down-mouse-1 brings up the Font menu and where you release it (S-mouse-1) determines what happens next. I believe that it is in general preferable to bind click events, rather than button-down events, unless you either want to look for a drag type event or you want a two step process, like the S-down-mouse-1 - S-mouse-1 sequence. Thanks for your reply, Luc. I'm getting a better idea of what I'm missing. I'm still unclear about S-down-mouse-1, however. What do you mean by "where you release it (S-mouse-1) determines what happens next"? Maybe I'm missing something because I'm using Emacs on Windows? On Windows, S-down-mouse-1 just brings up the standard Windows Font dialog box, by default. Where you release the mouse button does not seem to have any effect. I also tried setting `w32-use-w32-font-dialog' to nil, to get the non-Windows dialog "like X does" (to quote the doc string). I still do not notice any change in behavior depending on where I release the mouse button, however. What difference in behavior do you notice, depending on where you release the mouse button? Thanks, Drew