From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: Re: when to bind *down-mouse* vs *mouse*? Date: Sat, 04 Dec 2004 18:59:21 +0100 Message-ID: <874qj23pxi.fsf@confusibombus.emacswiki.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102183231 24804 80.91.229.6 (4 Dec 2004 18:00:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2004 18:00:31 +0000 (UTC) Cc: Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 04 19:00:26 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 1CaeCn-0002vi-00 for ; Sat, 04 Dec 2004 19:00:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaeMS-0002lJ-NN for ged-emacs-devel@m.gmane.org; Sat, 04 Dec 2004 13:10:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaeLz-0002kj-IJ for emacs-devel@gnu.org; Sat, 04 Dec 2004 13:09:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaeLz-0002kX-4u for emacs-devel@gnu.org; Sat, 04 Dec 2004 13:09:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaeLz-0002kU-3F for emacs-devel@gnu.org; Sat, 04 Dec 2004 13:09:55 -0500 Original-Received: from [62.2.95.247] (helo=smtp.hispeed.ch) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CaeBr-00044D-8L for emacs-devel@gnu.org; Sat, 04 Dec 2004 12:59:27 -0500 Original-Received: from confusibombus.emacswiki.org.emacswiki.org (80-218-6-247.dclient.hispeed.ch [80.218.6.247]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id iB4HxFKw012827; Sat, 4 Dec 2004 18:59:16 +0100 Original-To: "Drew Adams" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACkElEQVR42s1a0bLsIAgzjv// y7kPd9pVKxKVdk6fzux2C4EAwR6QZBpcQEopIf3Fq3a52Lfh0Mjjk99zcWYBwA2ihEen9jVxfAf/ u0+Y2HQwNoVw4Dx34trRV6NSjiLPmfPt77jwiBxB/3PnZ3B2AGxzHnGu0wcBwAIAyQwZGvQhiFcy YLOFQcSB/MS82n3ec37vykNqRFTX9rVWR2U5+pZNIggll0CUOQN9BDdm1LfBmcZxIEqjL6r2JU/D galaB7Zg4jlY2ulnIx9OR4iMRl38CAFyKaA8jAxE7lNn650VKMULZ/54crqn0YQCJGQliebXkFIK hwqmGm28cgsSjz/hzRCMneQEwMjVoH3gWTtMPgIslJUV5uIluvUEkyzU+gUGQO62e9NuSdZCzNOM fDPC87iCqfE9gHinsIrSL16TPBfrYIeHzqKU90a50jCh54EcrgAUFo5ibzvebgr/I66USQ0CspQp IVSoBQK3WswDDIndIraHxoglqOjM1d044PQvu1NY0EHtqQR/XwJ+PeCs0x2dSlApZVw4MPER23PD 7JekoHxrqTRod/2Gx5nhx5dfAJhqPt7tDMIZxNN/7lOIaparPn7ZQ88drlORC2eLWXowxIq4gHTh VN1BSmsHoxYAbPWDTuGQuuecS+aYQUYpfr0YqPQOuuUk5tApK077+2xfOYP+XyWEIwPcE49lvT9N y2+wU2KylGGp4yxlALcm6fSlmgk62yfSsfNunDl5d6W91MBUoZw679YAJoMMkhijuXdFOL+khaL2 s+g3zy4APQuQvSc/BNAYnkl6E8ivYtEHJXa1dihE3zgnKMdNgN8DiIwgA17NykUMvFDQ+LALvXXI BuBLAHv/DvBmc/0HzR03PqXmLcQAAAAASUVORK5CYII= In-Reply-To: (Drew Adams's message of "Fri, 3 Dec 2004 09:22:25 -0800") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) 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:30671 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30671 When the action creates a popup menu, I think we want to bind it to the mouse-down event. I seem to situations where the menu would disappear as soon as you released the mouse. If you released the mouse on a menu item, that menu item has been "chosen" by the user. Similary, when the action involves a position, we want to use mouse-down. One example is yanking with the mouse. We want to yank where the user clicked the mouse button (down), not where the user released it. Conversely, when the action is triggered by clicking into some sensitive area (eg. buttons, links), then we should use mouse-up, so that the user can change his mind after mouse-down and move away from the button or link in order to cancel. Alex. -- .O. http://www.emacswiki.org/alex/ ..O Schroeder's fifth law: OOO Never accept more work than you can handle in one night of hacking.