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: Wed, 08 Dec 2004 02:38:29 +0100 Message-ID: <877jnto9gq.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 1102469946 15691 80.91.229.6 (8 Dec 2004 01:39:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2004 01:39:06 +0000 (UTC) Cc: Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 08 02:39:00 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 1CbqnE-0006Te-00 for ; Wed, 08 Dec 2004 02:39:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cbqx3-0007mx-Jm for ged-emacs-devel@m.gmane.org; Tue, 07 Dec 2004 20:49:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cbqwt-0007mc-8E for emacs-devel@gnu.org; Tue, 07 Dec 2004 20:48:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cbqws-0007lv-0l for emacs-devel@gnu.org; Tue, 07 Dec 2004 20:48:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cbqwr-0007ll-Pu for emacs-devel@gnu.org; Tue, 07 Dec 2004 20:48:57 -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 1Cbqmu-0002rH-54 for emacs-devel@gnu.org; Tue, 07 Dec 2004 20:38:40 -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 iB81cRVl013990; Wed, 8 Dec 2004 02:38:28 +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 "Mon, 6 Dec 2004 11:16:20 -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:30823 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30823 "Drew Adams" writes: > And these applications nevertheless let you keep the button pressed and > release it on a menu item to choose the item. And they let you, > alternatively, use separate clicks: one to bring up the menu, one to choose > each submenu (if any), and one to choose a menu item. > > So, I would say that it is not clear that popup menus should be opened on > down-mouse - the reasons given so far aren't convincing. I'm not saying that > Emacs should necessarily behave like Windows apps; I'm just asking why it is > a good idea to bind popup menu opening to down-mouse, rather than mouse > (mouse-up). Assume an environment where you can press mouse-down, and a popup-menu appears. Keeping the mouse button pressed, move to the menu entry you want to pick and release the mouse button. This kind of behaviour is possible for some systems (eg. xman for X11). Binding a menu to mouse-up would make this menu unusable on these systems. The menu won't appear unless you release the mouse, but it will disappear as soon as you release the mouse... That's why I think we want mouse-down for popups. 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.