From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13884: 24.3.50; `mouse-secondary-save-then-kill' should not affect the kill ring (+ regression) Date: Sun, 06 Dec 2020 20:03:52 +0100 Message-ID: <87wnxurc2v.fsf@gnus.org> References: <65E5B3EECB024BECBFE64DDE1C8CCFF7@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10309"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 13884@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 20:05:33 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klzLg-0002Xs-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 20:05:32 +0100 Original-Received: from localhost ([::1]:40054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klzLf-0003w5-Py for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 14:05:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzLC-0003uU-Qs for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klzLC-0004i5-J6 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klzLC-00065T-E9 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13884 X-GNU-PR-Package: emacs Original-Received: via spool by 13884-submit@debbugs.gnu.org id=B13884.160728144423292 (code B ref 13884); Sun, 06 Dec 2020 19:05:02 +0000 Original-Received: (at 13884) by debbugs.gnu.org; 6 Dec 2020 19:04:04 +0000 Original-Received: from localhost ([127.0.0.1]:51266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klzKG-00063c-Bm for submit@debbugs.gnu.org; Sun, 06 Dec 2020 14:04:04 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:56350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klzKF-000635-1L for 13884@debbugs.gnu.org; Sun, 06 Dec 2020 14:04:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=N2N8tVSRuorRJMnMk4z9jTl/XpCXMJwwbYMVULVlWhI=; b=p1/13fJuS46iwuM+kQD9muz/yA xIueCfXufbt2sduCvQIYxhDwAJ9cMokA53D6575Mu9DU4TfzRP3ryr0CRpxBQcFXcegzvafOqA+wO Aw4c9zFmw1t+ZKAosfqsYgidxzEqgnwzFfFAgfAXg92ikxx6HXVI9i0/Fdmd+TkDFii8=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klzK6-00076g-5y; Sun, 06 Dec 2020 20:03:56 +0100 X-Now-Playing: Sylvain Chauveau's _Life Without Machines_: "....en........." In-Reply-To: <65E5B3EECB024BECBFE64DDE1C8CCFF7@us.oracle.com> (Drew Adams's message of "Tue, 5 Mar 2013 15:19:52 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195148 Archived-At: "Drew Adams" writes: > 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: (I think it's too late to change how this works at this point.) > 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. The doc string says: ---- Set the secondary selection and save it to the kill ring. ---- So this is presumably intended behaviour. Closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no