From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miguel Frasson Newsgroups: gmane.emacs.devel Subject: Re: mouse clicks on tool-bar -- why not recognize different mouse buttons? Date: 15 Oct 2004 09:02:17 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <62E1B4CA-1E71-11D9-8E1A-000D93505B76@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097823786 31809 80.91.229.6 (15 Oct 2004 07:03:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 07:03:06 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 15 09:02:51 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 1CIM71-0004Bo-00 for ; Fri, 15 Oct 2004 09:02:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIME9-0004Ok-D2 for ged-emacs-devel@m.gmane.org; Fri, 15 Oct 2004 03:10:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CIMDu-0004OX-Vk for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:09:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CIMDu-0004OF-8x for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:09:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIMDu-0004O5-3m for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:09:58 -0400 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CIM6X-0007nG-EO for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:02:21 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CIM6W-0000OF-00 for ; Fri, 15 Oct 2004 09:02:20 +0200 Original-Received: from 84e5e716.math.leidenuniv.nl ([132.229.231.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2004 09:02:20 +0200 Original-Received: from frasson by 84e5e716.math.leidenuniv.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2004 09:02:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 84e5e716.math.leidenuniv.nl User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28419 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28419 "Jan D." writes: > > However, since a tool-bar item is just a graphic (not a specific name, > > like > > a menu item), why not treat tool-bar items more like we treat portions of > > the mode-line: why not recognize different mouse button events on > > tool-bar > > items? Why not, say, be able to have mouse-3 on a given tool-bar button > > do > > something different from mouse-1 on the same item? > > No other application I know of does this. Emacs is already very different > from standard GUI applications, and adding more Emacs specific GUI things > will only make it harder to port to current and future toolkits. Also, > what > kind of operations do you have in mind? Other mouse buttons could be bound, for example, for a popup menu for customization, properties or related actions. In firefox (maybe mozilla is the same), for instance, a right click in the bookmark toolbar allows customization. It would be interesting to allow user to customize a toolbar button, if it makes sense, by right-clicking on it, and selecting "Customize this button", or "customize toolbar" there. Think in a "Print" button. One can just print pushing it, but one could select printer, select printing options, etc. Why allow Control + click and not right-button click, for instance? Maybe, it was a implementation not-so-fortunate decision that toolbar buttons are bounded to fake keys in tool-bar-map, and only modifiers can be added (different mouse buttons don't generate modifiers)... This is the problem on changing now. However, if we have fake keys, why not to have fake modifiers, in some sense? Miguel. -- Miguel Vinicius Santini Frasson http://www.math.leidenuniv.nl/~frasson