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#13884: 24.3.50; `mouse-secondary-save-then-kill' should not affect the kill ring (+ regression) Date: Tue, 5 Mar 2013 15:19:52 -0800 Message-ID: <65E5B3EECB024BECBFE64DDE1C8CCFF7@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362525649 25242 80.91.229.3 (5 Mar 2013 23:20:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Mar 2013 23:20:49 +0000 (UTC) To: 13884@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 00:21:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UD1AW-00022B-1A for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 00:21:12 +0100 Original-Received: from localhost ([::1]:39420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD1AA-0001ce-BE for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Mar 2013 18:20:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD1A5-0001cY-C8 for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:20:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD1A2-0001pj-Ar for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:20:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD1A2-0001pb-4J for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:20:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UD1AO-0000Xm-2a for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:21:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Mar 2013 23:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13625256362041 (code B ref -1); Tue, 05 Mar 2013 23:21:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Mar 2013 23:20:36 +0000 Original-Received: from localhost ([127.0.0.1]:33231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UD19v-0000Wr-CZ for submit@debbugs.gnu.org; Tue, 05 Mar 2013 18:20:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40903) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UD19s-0000Wf-Bt for submit@debbugs.gnu.org; Tue, 05 Mar 2013 18:20:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD19N-0001Em-La for submit@debbugs.gnu.org; Tue, 05 Mar 2013 18:20:04 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:48992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD19N-0001Dx-HE for submit@debbugs.gnu.org; Tue, 05 Mar 2013 18:20:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD19L-0001Wa-PB for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:20:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD19J-0001AG-QJ for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:19:59 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD19J-00019p-JO for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2013 18:19:57 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r25NJsK2010377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 5 Mar 2013 23:19:55 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r25NJswa010372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Mar 2013 23:19:54 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r25NJs4f017605 for ; Tue, 5 Mar 2013 17:19:54 -0600 Original-Received: from dradamslap1 (/10.159.175.49) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 05 Mar 2013 15:19:54 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac4Z9/BgytFwvWv9Q+SCp3mwPPHkQg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72143 Archived-At: Prior to Emacs 24, if you clicked `M-mouse-3' without first clicking `M-mouse-1' you got a "Wrong buffer" error msg informing you that the secondary selection was not in this buffer. That was consistent and reasonable behavior. Starting with Emacs 24, if you do that Emacs moves the secondary selection to the current buffer, from point to the clicked position. 1. It could be argued that this is a regression, especially as: a. This user-visible behavior change is not noted in the NEWS, AFAICT. b. Point has nothing to do with the secondary selection, whereas it is always at one end of the region. c. Now the user is no longer informed that s?he is in the wrong buffer. I.e., s?he is not told that there is no secondary selection in the current buffer. If s?he has already defined the secondary selection in a different buffer, and, e.g., s?he thinks s?he is in that buffer, s?he will lose that selection and instead re-create the secondary selection in the current buffer. This change in behavior is arguably a bad thing, not a good thing. 2. Be that as it may, if this behavior is to remain, there is nevertheless the following bug, the main purpose of this report: In this case (no start of secondary selection in current buffer, so using point as the start position), the code mistakenly does this, in addition to doing what it needs to do to establish the secondary selection: (kill-ring-save (point) click-pt) That code is a vestige, presumably. In any case, it has no business being there. Setting the secondary selection should not in any way affect the `kill-ring'. The secondary selection is entirely separate from the region and the kill ring. This sexp should be removed. In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2013-02-25 on ODIEONE Bzr revision: 111879 yamaoka@jpl.org-20130225224731-cv9gznq5nqf3ei7g Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'