From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Kelly Dean Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 01:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19513@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142042003623349 (code B ref -1); Mon, 05 Jan 2015 01:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jan 2015 01:07:16 +0000 Received: from localhost ([127.0.0.1]:36787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7w8Z-00064V-Ku for submit@debbugs.gnu.org; Sun, 04 Jan 2015 20:07:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40254) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7w8X-00064L-0v for submit@debbugs.gnu.org; Sun, 04 Jan 2015 20:07:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7w8V-00085X-Q6 for submit@debbugs.gnu.org; Sun, 04 Jan 2015 20:07:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7w8V-00085T-NN for submit@debbugs.gnu.org; Sun, 04 Jan 2015 20:07:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7w8U-00029A-AI for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 20:07:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7w8P-00084p-Ap for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 20:07:10 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:44415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7w8P-00084D-4y for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 20:07:05 -0500 Received: from mfilter35-d.gandi.net (mfilter35-d.gandi.net [217.70.178.166]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id E716FFB87E for ; Mon, 5 Jan 2015 02:07:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter35-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter35-d.gandi.net (mfilter35-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id LUHqLpVKnBZW for ; Mon, 5 Jan 2015 02:06:59 +0100 (CET) X-Originating-IP: 162.248.99.114 Received: from localhost (114-99-248-162-static.reverse.queryfoundry.net [162.248.99.114]) (Authenticated sender: kelly@prtime.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 75437FB86F for ; Mon, 5 Jan 2015 02:06:56 +0100 (CET) From: Kelly Dean Date: Mon, 05 Jan 2015 01:06:04 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) With Emacs 24.4, do emacs -Q, get two windows in your frame, and different buffers in the windows, and some text in each buffer. In one of them, (setq-local shift-select-mode nil). In each of them, try shifted motion followed by non-shifted motion, and you get the expected result. That indicates that shift-select-mode is buffer-local. You trigger the bug like this: Switch to the window with the buffer with shift-select-mode on. Do shifted motion, but not non-shifted, so the selection remains. C-x o Do any motion (shifted or non-shifted), and you get the expected result (no selection). C-x o Do non-shifted motion, which is supposed to turn off the selection. However, the selection remains. I know you'll consider it weird to want to buffer-locally disable shift-select-mode. But the mode is enabled and disabled by setting a variable, Emacs supports buffer-local variables (which aren't supposed to affect other buffers), and I don't see anything in the docs that says the shift-select-mode variable is an exception to buffer-locality. So the above behavior is a bug. The reason I want to do that is I have a minor mode that depends on shift-select-mode being disabled. I never use shift-select-mode myself, so I always have it disabled, but I'm trying to enhance my mode so it will work for everybody else. I could simply disable shift-select-mode globally while my mode is enabled (and restore the former setting when my mode is disabled), but that would affect all buffers, not just the buffer in which my mode is enabled. The right way to do it is to buffer-locally disable shift-select-mode, but the bug above prevents that. The easy solution is to remove shift-select-mode from Emacs. That's what I vote for, but I guess I'm in the minority. ;-) From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 02:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kelly Dean Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.14204237701629 (code B ref 19513); Mon, 05 Jan 2015 02:10:02 +0000 Received: (at 19513) by debbugs.gnu.org; 5 Jan 2015 02:09:30 +0000 Received: from localhost ([127.0.0.1]:36822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7x6n-0000QD-II for submit@debbugs.gnu.org; Sun, 04 Jan 2015 21:09:29 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:49329) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7x6m-0000Q6-3I for 19513@debbugs.gnu.org; Sun, 04 Jan 2015 21:09:28 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSQuiBwJ1lkBAQEBBgEBAQEekG8HhEgFiwGSMY9zggqBeIQZIYJ3AQEB X-IPAS-Result: AjwPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSQuiBwJ1lkBAQEBBgEBAQEekG8HhEgFiwGSMY9zggqBeIQZIYJ3AQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="106579505" Received: from 69-165-141-1.dsl.teksavvy.com (HELO pastel.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Jan 2015 21:09:27 -0500 Received: by pastel.home (Postfix, from userid 20848) id 4E1AF2527; Sun, 4 Jan 2015 21:09:27 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Sun, 04 Jan 2015 21:09:27 -0500 In-Reply-To: (Kelly Dean's message of "Mon, 05 Jan 2015 01:06:04 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I know you'll consider it weird to want to buffer-locally disable > shift-select-mode. Indeed. I actually find it weird to want to disable shift-select-mode globally as well. Could you explain why you want to disable-it buffer-locally? > So the above behavior is a bug. Agreed. It's got pretty low priority for me, tho. > The reason I want to do that is I have a minor mode that depends on > shift-select-mode being disabled. Can you explain how/why? > I never use shift-select-mode myself, Neither do I, but I've always kept it enabled since it appeared, and I never bumped into it, so it seems pretty harmless in "normal" use. > The easy solution is to remove shift-select-mode from Emacs. That's what > I vote for, but I guess I'm in the minority. ;-) Yes, I think you're in a very small minority here. I think it'll be much easier to make your minor mode work with shift-select-mode. Stefan From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Kelly Dean Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jan 2015 07:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.14205276332232 (code B ref 19513); Tue, 06 Jan 2015 07:01:02 +0000 Received: (at 19513) by debbugs.gnu.org; 6 Jan 2015 07:00:33 +0000 Received: from localhost ([127.0.0.1]:37944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8O80-0000Zw-4V for submit@debbugs.gnu.org; Tue, 06 Jan 2015 02:00:32 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59036) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8O7x-0000Zn-GY for 19513@debbugs.gnu.org; Tue, 06 Jan 2015 02:00:30 -0500 Received: from mfilter23-d.gandi.net (mfilter23-d.gandi.net [217.70.178.151]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id AFD55A80B8; Tue, 6 Jan 2015 08:00:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter23-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter23-d.gandi.net (mfilter23-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id cWU9S1Dl5aK5; Tue, 6 Jan 2015 08:00:26 +0100 (CET) X-Originating-IP: 162.248.99.114 Received: from localhost (114-99-248-162-static.reverse.queryfoundry.net [162.248.99.114]) (Authenticated sender: kelly@prtime.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 76189A80BE; Tue, 6 Jan 2015 08:00:25 +0100 (CET) From: Kelly Dean In-Reply-To: References: Date: Tue, 06 Jan 2015 06:59:39 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier wrote: >> The reason I want to do that is I have a minor mode that depends on >> shift-select-mode being disabled. > > Can you explain how/why? See line-select-minor-mode in the section beginning on line 339 at http://prtime.org/emacs/vimizer.el (currently version 0.2.2) Comment out lines 384-385 to enable it to work with shift-select-mode, to see how the latter interferes. Enable the mode, then press S-down. Then press down, and since you're doing a non-shifted motion command following a shifted motion command, shift-select-mode deactivates the region. The region is supposed to stay active while line-select mode is on, and line-select is supposed to remain on until you actually do something that's supposed to deactivate the region, e.g. C-g, C-w, etc. Motion commands specifically are _not_ supposed to deactivate it, which is why I need shift-select-mode disabled while the line-select mode is on. The reason it's a problem for motion commands to deactivate it is that I have a lot of keys bound to different motion commands depending on whether shift is pressed. E.g. I have a key bound to right-word, and the same key shifted is bound to forward-sexp. So I frequently press a combination of both shifted and non-shifted keys to move, including even when line-select is on. Normally, shift-select-mode doesn't deactivate the region, since it ignores my rebound keys, but when I happen to press a shifted key that I _don't_ have rebound (e.g. S-left, which Emacs translates to left, bound to the default of left-char), shift-select-mode notices it, and then deactivates the region upon the following non-shifted motion command. You could say, just avoid pressing S-left, but that's not user-friendly. If I'm doing a sequence of motion commands that happen to be bound to shifted keys, and I need to do left-char in the middle of the sequence, I shouldn't have to un-press shift just to prevent shift-select-mode from biting me the next time I use a non-shifted key. > Could you explain why you want to disable-it buffer-locally? So that if line-select is active (which requires shift-select inactive) in one buffer, it doesn't interfere with the user's ability to use shift-select in another buffer. From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jan 2015 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kelly Dean Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142055784622120 (code B ref 19513); Tue, 06 Jan 2015 15:25:02 +0000 Received: (at 19513) by debbugs.gnu.org; 6 Jan 2015 15:24:06 +0000 Received: from localhost ([127.0.0.1]:38819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8VzJ-0005kh-CG for submit@debbugs.gnu.org; Tue, 06 Jan 2015 10:24:05 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:58346) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8VzG-0005kX-Vx for 19513@debbugs.gnu.org; Tue, 06 Jan 2015 10:24:04 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t06FO14Q014340; Tue, 6 Jan 2015 10:24:01 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9242220BD; Tue, 6 Jan 2015 10:24:01 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Tue, 06 Jan 2015 10:24:01 -0500 In-Reply-To: (Kelly Dean's message of "Tue, 06 Jan 2015 06:59:39 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5178=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5178> : inlines <1721> : streams <1369074> : uri <1841462> X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > Comment out lines 384-385 to enable it to work with shift-select-mode, to see how the latter interferes. > Enable the mode, then press S-down. Then press down, and since you're > doing a non-shifted motion command following a shifted motion command, > shift-select-mode deactivates the region. I'm not sure it should be considered as a bug, or at least one specific to line-select-minor-mode. The same behavior shows up if you do (in "emacs -Q"): C-SPC next S-next and you see that the S-next ended the previous selection and started a new one. Some might see it as a feature (I don't know if it was implemented this way on purpose or by accident). If we see it as a bug the right answer is probably to change shift-select-mode such that shifted-motion doesn't start a new shift-selection if we're already in the middle of an "old-style" selection. Since you have shift-select-mode disabled globally, you shouldn't care anyway, so I guess you're doing this in response to complaints from users of vimizer. If so, do they usually use shift-select-mode? If not, maybe the right answer is to tell them they should disable shift-select-mode. Stefan From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Kelly Dean Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jan 2015 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142057206522989 (code B ref 19513); Tue, 06 Jan 2015 19:22:01 +0000 Received: (at 19513) by debbugs.gnu.org; 6 Jan 2015 19:21:05 +0000 Received: from localhost ([127.0.0.1]:38895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Zge-0005yj-N2 for submit@debbugs.gnu.org; Tue, 06 Jan 2015 14:21:05 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39747) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Zgc-0005yS-DD for 19513@debbugs.gnu.org; Tue, 06 Jan 2015 14:21:03 -0500 Received: from mfilter34-d.gandi.net (mfilter34-d.gandi.net [217.70.178.165]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 96D19FB87D; Tue, 6 Jan 2015 20:21:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter34-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter34-d.gandi.net (mfilter34-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id LMDNTMyuKFKa; Tue, 6 Jan 2015 20:21:00 +0100 (CET) X-Originating-IP: 162.248.99.114 Received: from localhost (114-99-248-162-static.reverse.queryfoundry.net [162.248.99.114]) (Authenticated sender: kelly@prtime.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id CD5BFFB8B9; Tue, 6 Jan 2015 20:20:58 +0100 (CET) From: Kelly Dean In-Reply-To: References: Date: Tue, 06 Jan 2015 19:20:11 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier wrote: > The same behavior shows up if you do (in "emacs -Q"): > > C-SPC next S-next > > and you see that the S-next ended the previous selection and started > a new one. Some might see it as a feature (I don't know if it was > implemented this way on purpose or by accident). > > If we see it as a bug the right answer is probably to change > shift-select-mode such that shifted-motion doesn't start a new > shift-selection if we're already in the middle of an > "old-style" selection. If that's a bug, then it's a different one; it isn't the behavior that #1= 9513 is about. But if it is a bug, and gets fixed, then it appears shift-= select would no longer interfere with line-select (which uses =E2=80=9Fol= d-style=E2=80=9D selection), so I'd have no need to buffer-locally disabl= e shift-select, which means I wouldn't care if #19513 is never fixed. > Since you have shift-select-mode disabled globally, you shouldn't > care anyway, so I guess you're doing this in response to complaints fro= m > users of vimizer. If so, do they usually use shift-select-mode? I'm the only user of vimizer. I haven't sent it to a package repository y= et, because I only recently had time to disentangle it from the rest of m= y custom code and make a standalone package, and I need to dogfood it for= a while to make sure I didn't introduce any new bugs. When I do send it,= other people won't want to have to globally disable shift-select. > If not, maybe the right answer is to tell them they should disable > shift-select-mode. Right now, line-select does say it's incompatible with shift-select, and = refuses to turn on unless shift-select is disabled. But that's a poor wor= karound. From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jan 2015 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kelly Dean Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.14205783686233 (code B ref 19513); Tue, 06 Jan 2015 21:07:02 +0000 Received: (at 19513) by debbugs.gnu.org; 6 Jan 2015 21:06:08 +0000 Received: from localhost ([127.0.0.1]:38979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8bKJ-0001cS-SK for submit@debbugs.gnu.org; Tue, 06 Jan 2015 16:06:08 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:41777) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8bKG-0001cI-O4 for 19513@debbugs.gnu.org; Tue, 06 Jan 2015 16:06:05 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t06L62b1015807; Tue, 6 Jan 2015 16:06:02 -0500 Received: by pastel.home (Postfix, from userid 20848) id 7D296EF8; Tue, 6 Jan 2015 16:06:02 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Tue, 06 Jan 2015 16:06:02 -0500 In-Reply-To: (Kelly Dean's message of "Tue, 06 Jan 2015 19:20:11 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5178=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5178> : inlines <1723> : streams <1369172> : uri <1841487> X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > I'm the only user of vimizer. I haven't sent it to a package repository yet, > because I only recently had time to disentangle it from the rest of my > custom code and make a standalone package, and I need to dogfood it > for a while to make sure I didn't introduce any new bugs. When I do send it, > other people won't want to have to globally disable shift-select. It definitely shouldn't globally disable shift-select-mode. But the behavior you seem not to like doesn't look like a bug to me (the bug#19513 is indeed a bug, OTOH), and I don't see any obvious reason why it should look like a bug to other users. >> If not, maybe the right answer is to tell them they should disable >> shift-select-mode. > Right now, line-select does say it's incompatible with shift-select, and > refuses to turn on unless shift-select is disabled. But > that's a poor workaround. I don't think it's incompatible. Maybe you don't like the interaction, but I think it's just because you don't like shift-select-mode's current behavior. Stefan From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local References: In-Reply-To: Resent-From: Kelly Dean Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jan 2015 08:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142217590915631 (code B ref 19513); Sun, 25 Jan 2015 08:52:01 +0000 Received: (at 19513) by debbugs.gnu.org; 25 Jan 2015 08:51:49 +0000 Received: from localhost ([127.0.0.1]:55586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFIv6-000443-Jq for submit@debbugs.gnu.org; Sun, 25 Jan 2015 03:51:48 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35831) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFIv4-00043t-2T for 19513@debbugs.gnu.org; Sun, 25 Jan 2015 03:51:46 -0500 Received: from mfilter34-d.gandi.net (mfilter34-d.gandi.net [217.70.178.165]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 088C041C064 for <19513@debbugs.gnu.org>; Sun, 25 Jan 2015 09:51:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter34-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter34-d.gandi.net (mfilter34-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 2imI8DurgKzL for <19513@debbugs.gnu.org>; Sun, 25 Jan 2015 09:51:43 +0100 (CET) X-Originating-IP: 66.220.3.179 Received: from localhost (gm179.geneticmail.com [66.220.3.179]) (Authenticated sender: kelly@prtime.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id C2B8641C053 for <19513@debbugs.gnu.org>; Sun, 25 Jan 2015 09:51:42 +0100 (CET) From: Kelly Dean Date: Sun, 25 Jan 2015 08:50:35 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) The bug was caused because handle-shift-selection sets transient-mark-mode globally to a cons with 'only as the car, then when the motion command occurs in the other buffer, handle-shift-selection sets transient-mark-mode globally to remove that cons, so back in the first buffer, when handle-shift-selection is called again, the cons is gone, so there's no trigger to deactivate the mark. Setting transient-mark-mode buffer-locally instead of globally fixes the bug. I was about to send a patch, but when I checked to make sure it applied to trunk, I discovered Stefan already fixed this bug in commit 5d2638bd in June 2014--more than three months before 24.4 was released. From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jan 2015 15:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kelly Dean Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142219901223475 (code B ref 19513); Sun, 25 Jan 2015 15:17:01 +0000 Received: (at 19513) by debbugs.gnu.org; 25 Jan 2015 15:16:52 +0000 Received: from localhost ([127.0.0.1]:55953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFOvj-00066X-OQ for submit@debbugs.gnu.org; Sun, 25 Jan 2015 10:16:51 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:52142) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFOvh-00066P-Bv for 19513@debbugs.gnu.org; Sun, 25 Jan 2015 10:16:49 -0500 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t0PFGlKX013025; Sun, 25 Jan 2015 10:16:48 -0500 Received: by ceviche.home (Postfix, from userid 20848) id A371C660FB; Sun, 25 Jan 2015 10:16:47 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Sun, 25 Jan 2015 10:16:47 -0500 In-Reply-To: (Kelly Dean's message of "Sun, 25 Jan 2015 08:50:35 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV5197=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5197> : inlines <1943> : streams <1379235> : uri <1843769> X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > I was about to send a patch, but when I checked to make sure it applied to > trunk, I discovered Stefan already fixed this bug in commit 5d2638bd in June > 2014--more than three months before 24.4 was released. We could backport this patch to `emacs-24'. Stefan From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jan 2015 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kelly Dean Cc: 19513@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142220042626099 (code B ref 19513); Sun, 25 Jan 2015 15:41:02 +0000 Received: (at 19513) by debbugs.gnu.org; 25 Jan 2015 15:40:26 +0000 Received: from localhost ([127.0.0.1]:55965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFPIX-0006ms-OP for submit@debbugs.gnu.org; Sun, 25 Jan 2015 10:40:25 -0500 Received: from mtaout24.012.net.il ([80.179.55.180]:54954) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFPIV-0006mS-L2 for 19513@debbugs.gnu.org; Sun, 25 Jan 2015 10:40:24 -0500 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NIQ00200OE3IU00@mtaout24.012.net.il> for 19513@debbugs.gnu.org; Sun, 25 Jan 2015 17:32:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIQ00H6FOHL9IA0@mtaout24.012.net.il>; Sun, 25 Jan 2015 17:32:09 +0200 (IST) Date: Sun, 25 Jan 2015 17:40:01 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <834mreswby.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Kelly Dean > Date: Sun, 25 Jan 2015 08:50:35 +0000 > > I was about to send a patch, but when I checked to make sure it applied to trunk, I discovered Stefan already fixed this bug in commit 5d2638bd in June 2014--more than three months before 24.4 was released. But it was fixed on the trunk, not on the emacs-24 branch from which Emacs 24.4 was released. So the fact that it was before the release doesn't matter. From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Kelly Dean Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jan 2015 04:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 19513@debbugs.gnu.org Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142224584021713 (code B ref 19513); Mon, 26 Jan 2015 04:18:02 +0000 Received: (at 19513) by debbugs.gnu.org; 26 Jan 2015 04:17:20 +0000 Received: from localhost ([127.0.0.1]:56454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFb72-0005e9-GN for submit@debbugs.gnu.org; Sun, 25 Jan 2015 23:17:20 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39919) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFb70-0005dy-Cj for 19513@debbugs.gnu.org; Sun, 25 Jan 2015 23:17:18 -0500 Received: from mfilter20-d.gandi.net (mfilter20-d.gandi.net [217.70.178.148]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 9AB20FB87F; Mon, 26 Jan 2015 05:17:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter20-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter20-d.gandi.net (mfilter20-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id xhrdAiAiOOQ7; Mon, 26 Jan 2015 05:17:13 +0100 (CET) X-Originating-IP: 66.220.3.179 Received: from localhost (gm179.geneticmail.com [66.220.3.179]) (Authenticated sender: kelly@prtime.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id A80C9FB86F; Mon, 26 Jan 2015 05:17:10 +0100 (CET) From: Kelly Dean In-Reply-To: References: Date: Mon, 26 Jan 2015 04:16:09 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier wrote: > We could backport this patch to `emacs-24'. Wouldn't that only matter if there's going to be another 24 release? I th= ought 25.1 was next, since =E2=8C=9C25.0.50=E2=8C=9D is appearing in ever= ybody's User-Agent headers. From unknown Fri Aug 15 16:24:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19513: shift-select-mode fails to be fully buffer-local Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jan 2015 06:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kelly Dean Cc: 19513@debbugs.gnu.org, monnier@IRO.UMontreal.CA Reply-To: Eli Zaretskii Received: via spool by 19513-submit@debbugs.gnu.org id=B19513.142225295732614 (code B ref 19513); Mon, 26 Jan 2015 06:16:01 +0000 Received: (at 19513) by debbugs.gnu.org; 26 Jan 2015 06:15:57 +0000 Received: from localhost ([127.0.0.1]:56473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFcxp-0008Ty-7s for submit@debbugs.gnu.org; Mon, 26 Jan 2015 01:15:57 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:45197) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFcxm-0008Ti-TY for 19513@debbugs.gnu.org; Mon, 26 Jan 2015 01:15:55 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NIR00H00TC28Y00@a-mtaout20.012.net.il> for 19513@debbugs.gnu.org; Mon, 26 Jan 2015 08:15:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIR00HAFTE58N10@a-mtaout20.012.net.il>; Mon, 26 Jan 2015 08:15:45 +0200 (IST) Date: Mon, 26 Jan 2015 08:15:27 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83a916qd8g.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Kelly Dean > Date: Mon, 26 Jan 2015 04:16:09 +0000 > Cc: 19513@debbugs.gnu.org > > Stefan Monnier wrote: > > We could backport this patch to `emacs-24'. > > Wouldn't that only matter if there's going to be another 24 release? Yes, and there's going to be one, hopefully very soon. Too many bugs in 24.4 were fixed since its release, so a bugfix release is in order. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 14 01:12:42 2017 Received: (at control) by debbugs.gnu.org; 14 Apr 2017 05:12:42 +0000 Received: from localhost ([127.0.0.1]:46327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cytXF-0002PU-VJ for submit@debbugs.gnu.org; Fri, 14 Apr 2017 01:12:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cytXD-0002PE-Fw for control@debbugs.gnu.org; Fri, 14 Apr 2017 01:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cytX7-0000Bm-GF for control@debbugs.gnu.org; Fri, 14 Apr 2017 01:12:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cytX7-0000Bi-D5 for control@debbugs.gnu.org; Fri, 14 Apr 2017 01:12:33 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cytX6-0003M6-V3 for control@debbugs.gnu.org; Fri, 14 Apr 2017 01:12:33 -0400 Subject: control message for bug 19513 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 14 Apr 2017 01:12:32 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) # 5d2638bd close 19513 25.1