From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7802: bug #7802: 24.0.50; Extraneous `mouse-3' event when do `double-mouse-3' Date: Fri, 7 Jan 2011 11:20:34 -0800 Message-ID: <7EB632A3268149CA89DA1D58C8046A01@us.oracle.com> References: <6AF23E536D254FC88C35DA0BEC775C1A@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294428249 15126 80.91.229.12 (7 Jan 2011 19:24:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 19:24:09 +0000 (UTC) To: <7802@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 07 20:24:05 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbHuv-0002m0-5P for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 20:24:05 +0100 Original-Received: from localhost ([127.0.0.1]:39744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbHuu-0004pu-KI for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 14:24:04 -0500 Original-Received: from [140.186.70.92] (port=43322 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbHup-0004po-3R for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 14:24:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbHun-0007au-UP for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 14:23:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbHun-0007ag-Su for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 14:23:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PbHlC-0001sT-NE; Fri, 07 Jan 2011 14:14:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <6AF23E536D254FC88C35DA0BEC775C1A@us.oracle.com> Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2011 19:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7802 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7802-submit@debbugs.gnu.org id=B7802.12944276117171 (code B ref 7802); Fri, 07 Jan 2011 19:14:02 +0000 Original-Received: (at 7802) by debbugs.gnu.org; 7 Jan 2011 19:13:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbHkg-0001rc-T1 for submit@debbugs.gnu.org; Fri, 07 Jan 2011 14:13:31 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbHkf-0001rR-1X for 7802@debbugs.gnu.org; Fri, 07 Jan 2011 14:13:29 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p07JKgCD018747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <7802@debbugs.gnu.org>; Fri, 7 Jan 2011 19:20:43 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p07HPeMF012510 for <7802@debbugs.gnu.org>; Fri, 7 Jan 2011 19:20:39 GMT Original-Received: from abhmt021.oracle.com by acsmt353.oracle.com with ESMTP id 908840221294428035; Fri, 07 Jan 2011 11:20:35 -0800 Original-Received: from dradamslap1 (/10.159.218.13) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 Jan 2011 11:20:35 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 thread-index: Acuun/Ue6ZqnV9N3SBualbyWt6gf/Q== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Jan 2011 14:14:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43191 Archived-At: OK, I see now (and remember) that this is "by design". Further in the same node it says: "When the user performs a double click, Emacs generates first an ordinary click event, and then a double-click event. Therefore, you must design the command binding of the double click event to assume that the single-click command has already run. It must produce the desired results of a double click, starting from the results of a single click. This is convenient, if the meaning of a double click somehow "builds on" the meaning of a single click--which is recommended user interface design practice for double clicks." But I don't see this as a great design. Though it might sometimes be "convenient" it is in general impossible to work around. If a `mouse-3' always appears before the `double-mouse-3' that corresponds to _what the user actually did_, then the `mouse-3' will always be handled before the command bound to `double-mouse-3' is invoked. So in general that command can do nothing to undo what the `mouse-3' command did. "Therefore, you must design the command binding of the double click event..." means nothing in the general case. No matter how that command or its binding is "designed", the command is invoked too late to do anything, in general, about what the single-click command has already done. This is not great, IMO.