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#7462: 24.0.50; prefix arg breaks `last-command' for `mouse-save-then-kill' Date: Sun, 21 Nov 2010 12:28:09 -0800 Message-ID: <83B82FC7FE604A9BAE6F07269980CC18@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 1290372283 5151 80.91.229.12 (21 Nov 2010 20:44:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 20:44:43 +0000 (UTC) To: 7462@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 21 21:44:39 2010 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 1PKGm7-00030o-2W for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Nov 2010 21:44:39 +0100 Original-Received: from localhost ([127.0.0.1]:58304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKGm6-0002j0-Il for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Nov 2010 15:44:38 -0500 Original-Received: from [140.186.70.92] (port=43724 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKGlz-0002hY-GY for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 15:44:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKGly-0008Nc-CF for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 15:44:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKGly-0008NW-8D for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 15:44:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PKGSA-0004pI-2p; Sun, 21 Nov 2010 15:24: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: Sun, 21 Nov 2010 20:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.129037099318543 (code B ref -1); Sun, 21 Nov 2010 20:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Nov 2010 20:23:13 +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 1PKGRN-0004p2-Hv for submit@debbugs.gnu.org; Sun, 21 Nov 2010 15:23:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PKGRM-0004ov-5l for submit@debbugs.gnu.org; Sun, 21 Nov 2010 15:23:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKGWO-0005jx-UI for submit@debbugs.gnu.org; Sun, 21 Nov 2010 15:28:25 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:40635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKGWO-0005jt-S3 for submit@debbugs.gnu.org; Sun, 21 Nov 2010 15:28:24 -0500 Original-Received: from [140.186.70.92] (port=56433 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKGWN-000866-Mf for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 15:28:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKGWM-0005jC-Hf for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 15:28:23 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:37245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKGWM-0005j8-BK for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 15:28:22 -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 oALKSKSJ007112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 21 Nov 2010 20:28:21 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oALKOExZ013170 for ; Sun, 21 Nov 2010 20:28:19 GMT Original-Received: from abhmt020.oracle.com by acsmt353.oracle.com with ESMTP id 798921101290371289; Sun, 21 Nov 2010 12:28:09 -0800 Original-Received: from dradamslap1 (/10.159.222.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 21 Nov 2010 12:28:09 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcuJupzRt+/RGhJnR3+sybPgfHgIVA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 21 Nov 2010 15:24: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:41805 Archived-At: emacs -Q Add a call to `message' at the end of `universal-argument-other-key' and another at the beginning of `mouse-save-then-kill'. Show the value of `last-command' in these messages. E.g. (defun universal-argument-other-key (arg) ... (restore-overriding-map) (message "UAOK, last-command: %s" last-command)) ; @@@@@@ (defun mouse-save-then-kill (click) "..." (interactive "e") (message "MSTK, last-command: %s" last-command) ; @@@@@@ ...) 1. Click `mouse-1' somewhere. 2. Click `mouse-3' at another location in the same buffer. 3. C-u 4. Click `mouse-3' at the same location as #2. IOW, you've just used `C-u' for the second mouse-3 click. The messages you see are these: MSTK, last-command: mouse-set-point UAOK, last-command: mouse-save-then-kill MSTK, last-command: universal-argument-other-key The bug is that `last-command' is set to `universal-argument-other-key'. `last-command' should still be `mouse-save-then-kill'. This happens somewhere between the end of the call to `universal-argument-other-key' and entrance to `mouse-save-then-kill' (more precisely, before the `message' call in `mouse-save-then-kill', which happens after `interactive'). `mouse-save-then-kill' tests whether the `last-command' was `mouse-save-then-kill', and this test fails if `C-u' is used before the second mouse-3 click. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-11-16 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'