From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dhruva Krishnamurthy Newsgroups: gmane.emacs.devel Subject: Re: mouse clicks on tool-bar -- why not recognize different mouse buttons? Date: Fri, 15 Oct 2004 13:20:43 +0530 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <68c73b1a04101500502e54fecb@mail.gmail.com> References: <62E1B4CA-1E71-11D9-8E1A-000D93505B76@swipnet.se> Reply-To: Dhruva Krishnamurthy NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1097826707 5640 80.91.229.6 (15 Oct 2004 07:51:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 07:51:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 15 09:51:37 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 1CIMsD-00071I-00 for ; Fri, 15 Oct 2004 09:51:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIMzK-0004eu-JF for ged-emacs-devel@m.gmane.org; Fri, 15 Oct 2004 03:58:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CIMyx-0004dx-TU for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:58:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CIMyv-0004dW-Sp for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:58:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIMyv-0004dT-IX for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:58:33 -0400 Original-Received: from [64.233.170.192] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CIMrM-0007qX-Em for emacs-devel@gnu.org; Fri, 15 Oct 2004 03:50:44 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=XbIpcQHLMpECdg2a+AZ4XsSOM4HwslFv/Eu6ylLO+Jlp8w8D0qwTKSxfoq4n2B7TVdFqHrFtJXOAR9MdwRagSmFT9Qg6kzPLdg6ZW3Gz3Du9I+MLuIUD52TXfi/TD2MLJR2FMFatkV0q8g1QPUoQS1aJOfuJ03BXJ1hWFSkBiMo Original-Received: by mproxy.gmail.com with SMTP id 74so5228rnl for ; Fri, 15 Oct 2004 00:50:44 -0700 (PDT) Original-Received: by 10.38.152.39 with SMTP id z39mr118790rnd; Fri, 15 Oct 2004 00:50:43 -0700 (PDT) Original-Received: by 10.38.102.20 with HTTP; Fri, 15 Oct 2004 00:50:43 -0700 (PDT) Original-To: Miguel Frasson In-Reply-To: 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:28422 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28422 On 15 Oct 2004 09:02:17 +0200, Miguel Frasson wrote: > 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? My views, I may be wrong though: Usually, all right mouse button clicks are made to show Contextual Menus, which means based on the context where the user has clicked, the appropriate menus are shown. I guess this is a standard Windoze GUI behavior. Each entity can over ride some methods (we do it through C++ interfaces in our development) which will show the context specific menu. I feel it is a good idea to let each entity to decide what needs to be show when a RMB click is done. The emacs engine must just identify the entity under the cursor and call it's implementation of the contextual menu. with best regards, dhruva -- Proud FSF member: #1935 http://schemer.fateback.com/