From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Binding a command to the down-event of a toolbar button Date: Fri, 31 Mar 2006 09:34:20 -0500 Message-ID: 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 1143815694 17779 80.91.229.2 (31 Mar 2006 14:34:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Mar 2006 14:34:54 +0000 (UTC) Cc: Mathias Dahl , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 31 16:34:51 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 1FPKi7-0002DV-NE for ged-emacs-devel@m.gmane.org; Fri, 31 Mar 2006 16:34:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FPKi7-0005gU-1P for ged-emacs-devel@m.gmane.org; Fri, 31 Mar 2006 09:34:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FPKhv-0005fu-AK for emacs-devel@gnu.org; Fri, 31 Mar 2006 09:34:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FPKht-0005dp-2Q for emacs-devel@gnu.org; Fri, 31 Mar 2006 09:34:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FPKhs-0005dh-S3 for emacs-devel@gnu.org; Fri, 31 Mar 2006 09:34:32 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FPKkC-0004Ql-T6; Fri, 31 Mar 2006 09:36:57 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 8926D2CF420; Fri, 31 Mar 2006 09:34:26 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 53AE1445C; Fri, 31 Mar 2006 09:34:21 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 1FEC171518; Fri, 31 Mar 2006 09:34:21 -0500 (EST) 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-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:52253 Archived-At: >> 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. Actually, I've only seen such behavior on Mac OS X where they have to deal with 1-button mouses (and where this context menu is also available (without delay) on mouse-3, if you have a 3-button mouse, or IIRC also with C-mouse-1). This said, a more pressing issue is the fact that clicked are dropped on the floor if they happen just during redisplay. This is *very* annoying if your display includes a seconds-precise timer or worse. It make it difficult in MPC.el to stop the fast-forward (or rewind) since they cause constant redisplay (since the seconds-precise counter counts then even faster than 1s/s). Stefan