From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Binding a command to the down-event of a toolbar button Date: Fri, 31 Mar 2006 13:01:32 +0200 Message-ID: <854q1eg9o3.fsf@lola.goethe.zz> References: <87slp5lrx2.fsf-monnier+emacs@gnu.org> <7dbe73ed0603300156k46cae26dhe01f5ddf3309a3a3@mail.gmail.com> <442D0206.3000609@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143802928 4750 80.91.229.2 (31 Mar 2006 11:02:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Mar 2006 11:02:08 +0000 (UTC) Cc: Mathias Dahl , Stefan Monnier , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 31 13:02:04 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FPHOC-0001c4-PK for ged-emacs-devel@m.gmane.org; Fri, 31 Mar 2006 13:02:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FPHOC-0006Tc-Dl for ged-emacs-devel@m.gmane.org; Fri, 31 Mar 2006 06:02:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FPHO1-0006T5-5y for emacs-devel@gnu.org; Fri, 31 Mar 2006 06:01:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FPHO0-0006Sf-OL for emacs-devel@gnu.org; Fri, 31 Mar 2006 06:01:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FPHO0-0006SS-LW for emacs-devel@gnu.org; Fri, 31 Mar 2006 06:01:48 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FPHQN-0001Xy-W9 for emacs-devel@gnu.org; Fri, 31 Mar 2006 06:04:16 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FPHNt-0007mJ-Ae; Fri, 31 Mar 2006 06:01:41 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6013D1C3DB49; Fri, 31 Mar 2006 13:01:32 +0200 (CEST) Original-To: Jason Rumney In-Reply-To: <442D0206.3000609@gnu.org> (Jason Rumney's message of "Fri, 31 Mar 2006 11:18:46 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.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: news.gmane.org gmane.emacs.devel:52248 Archived-At: Jason Rumney writes: > Stefan Monnier wrote: >> I think my request for down-events on the tool-bar is related to some other >> people's requests to be able to bind different actions for mouse-1, mouse-2, >> mouse-3. >> > Another interface I have seen that having a down-event would enable is > to execute a common action on normal clicking of the button, but if > the mouse button is held down for around 1 - 2 seconds, then a menu > appears with less common related actions. Context menus on mouse-3 are rather common. I think that we should aim for Emacs 22 to just provide the "customary" Emacs keymap model on toolbar buttons: it is sort of an "element of least surprise" expectation. Even though we should not start any user interface experiments actually _using_ that possibility right now ourselves. But I think it should be available for the taking. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum