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:38:25 -0800 Message-ID: References: <6AF23E536D254FC88C35DA0BEC775C1A@us.oracle.com> <7EB632A3268149CA89DA1D58C8046A01@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 1294430054 24671 80.91.229.12 (7 Jan 2011 19:54:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 19:54:14 +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:54:10 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 1PbIO0-0001bp-8e for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 20:54:08 +0100 Original-Received: from localhost ([127.0.0.1]:59785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbINz-0001V2-Mq for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 14:54:07 -0500 Original-Received: from [140.186.70.92] (port=48883 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbINr-0001UV-FJ for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 14:54:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbINp-0004bO-V3 for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 14:53:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbINp-0004bK-SA for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 14:53:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PbI3a-0002Ib-DF; Fri, 07 Jan 2011 14:33:02 -0500 X-Loop: help-debbugs@gnu.org 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:33: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.12944287298764 (code B ref 7802); Fri, 07 Jan 2011 19:33:02 +0000 Original-Received: (at 7802) by debbugs.gnu.org; 7 Jan 2011 19:32:09 +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 1PbI2j-0002HJ-85 for submit@debbugs.gnu.org; Fri, 07 Jan 2011 14:32:09 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbI2h-0002Gt-5T for 7802@debbugs.gnu.org; Fri, 07 Jan 2011 14:32:07 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p07JdLIk002871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <7802@debbugs.gnu.org>; Fri, 7 Jan 2011 19:39:23 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p07HPeD1018733 for <7802@debbugs.gnu.org>; Fri, 7 Jan 2011 19:39:21 GMT Original-Received: from abhmt007.oracle.com by acsmt353.oracle.com with ESMTP id 908880451294429106; Fri, 07 Jan 2011 11:38:26 -0800 Original-Received: from dradamslap1 (/10.159.218.13) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 Jan 2011 11:38:25 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <7EB632A3268149CA89DA1D58C8046A01@us.oracle.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 thread-index: Acuun/Ue6ZqnV9N3SBualbyWt6gf/QAAKASQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Jan 2011 14:33: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:43194 Archived-At: > `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. What's more, you cannot even design the single-click command so that it someow detects the situation and turns itself into a no-op, to get out of the way. There is of course no way for it to know whether the following event is a double-click event. > "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. Likewise wrt designing the single-click command. How could you fix `mouse-save-then-kill', for instance, to not do anything if the following event is `double-mouse-3'? Exercise: Design a command for `double-mouse-3' that will not let `mouse-save-then-kill' first do its thing when you (just) double-click. You can even rewrite `mouse-save-then-kill' if that will help. E.g., have `double-mouse-3' bound to a command that pops up a menu. Try having it not also delete the region if you first use `double-mouse-1' `mouse-3' to select text. > This is not great, IMO. Sounds to me like this "design" is just a side effect of the implementation. The doc tries to make a virtue out of the necessity that results from the implementation - by claiming "convenience". What it really should say is "This is a sorry state of affairs; apologies." But I hope instead of a doc workaround that this bug can actually be fixed...