From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Binding a command to the down-event of a toolbar button Date: Sun, 02 Apr 2006 23:24:45 -0400 Message-ID: References: <87slp5lrx2.fsf-monnier+emacs@gnu.org> <7dbe73ed0603300156k46cae26dhe01f5ddf3309a3a3@mail.gmail.com> <442D0206.3000609@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1144036043 7204 80.91.229.2 (3 Apr 2006 03:47:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Apr 2006 03:47:23 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, mathias.dahl@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 03 05:47:21 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 1FQG24-00046S-9U for ged-emacs-devel@m.gmane.org; Mon, 03 Apr 2006 05:47:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQG23-0002wl-Jm for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2006 23:47:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FQG1p-0002v3-S5 for emacs-devel@gnu.org; Sun, 02 Apr 2006 23:46:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FQG1p-0002u7-5o for emacs-devel@gnu.org; Sun, 02 Apr 2006 23:46:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQG1o-0002u2-NQ for emacs-devel@gnu.org; Sun, 02 Apr 2006 23:46:56 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FQFjT-0006PA-LS for emacs-devel@gnu.org; Sun, 02 Apr 2006 23:27:59 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FQFgL-0001s2-2o; Sun, 02 Apr 2006 23:24:45 -0400 Original-To: Jason Rumney In-reply-to: (message from Jason Rumney on Sun, 02 Apr 2006 22:29:22 +0100) 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:52350 Archived-At: > In the case where you get the menu by holding down mouse-1 on the > triangle, what happens when you just click mouse-1 there? The "default action" for that toolbar button is executed. Now I understand the scenario you are trying to describe. I did not understand it before. (I have never seen this.) As an example of how such a feature is used, the Print icon on the Emacs tool bar currently runs print-buffer. In the above scenario, it could drop down a menu when the mouse button was held down for more than 1 second, offering access to print-region, ps-print-buffer-with-faces and ps-print-region-with-faces as well. That seems like a natural feature to provide, if someone wants to implement it. Not now, though.