From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 22 01:23:42 2015 Received: (at submit) by debbugs.gnu.org; 22 Oct 2015 05:23:42 +0000 Received: from localhost ([127.0.0.1]:60103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zp8Ll-0000el-Qn for submit@debbugs.gnu.org; Thu, 22 Oct 2015 01:23:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46884) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zp8Lk-0000ee-GG for submit@debbugs.gnu.org; Thu, 22 Oct 2015 01:23:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zp8LG-0002Y8-3O for submit@debbugs.gnu.org; Thu, 22 Oct 2015 01:23:40 -0400 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]:48769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp8LF-0002Xw-Rj for submit@debbugs.gnu.org; Thu, 22 Oct 2015 01:23:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp8Kg-0004su-L4 for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 01:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zp8KF-0001mW-0G for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 01:22:34 -0400 Received: from mail-qg0-f48.google.com ([209.85.192.48]:34412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp8KE-0001lr-Ou for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 01:22:06 -0400 Received: by qgem9 with SMTP id m9so47384432qge.1 for ; Wed, 21 Oct 2015 22:22:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; bh=DB+XoelKxaKz+gBd4fFvlQ63Gkhgs2qOwCqfSed4ze8=; b=km3JYysfSXEdeRioWqdGJCgrGaX0u+3/JM8biqmI81du0qfJUQfT4Kp8UAcnMLW1Rb hafN6ymc92j+n7XoxHjq9V75gbNP2l/R3zlvaMGl/WpfvzNsfembXYL/DA7D+Rp5Albg eYA8PNqXYs/DIh5z5wY7Q19fKDANDIzVahudqMK2o7BoT15IEVu5WfrIWFKFOZHNi64d pzs42zd9+MCWfqGZT4W4Puhq33T6RMGxPFROxRKzMsExPrQZxTHgzUKAK3vG9qgSqZlY bUj3ONlbR+ILlRvtu7/nmHtXQtfUB0ZDjVT1GyeLx27lAeA7ofvmli09kGbvPD2VksNv XPtA== X-Gm-Message-State: ALoCoQkq613mFId0VV6ad2BnyH6kqoAicImJTi9x4exV4aCvBUnBa7pC0ATx3YtR4Yf5sznOGxvv X-Received: by 10.140.147.69 with SMTP id 66mr501972qht.12.1445491326109; Wed, 21 Oct 2015 22:22:06 -0700 (PDT) Received: from lambda.ccs.neu.edu (lambda.ccs.neu.edu. [129.10.115.115]) by smtp.gmail.com with ESMTPSA id k64sm4745037qkh.10.2015.10.21.22.22.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Oct 2015 22:22:05 -0700 (PDT) From: Eli Barzilay MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <22056.29308.347026.83990@lambda.ccs.neu.edu> Date: Thu, 22 Oct 2015 01:22:04 -0400 To: bug-gnu-emacs@gnu.org Subject: 24.5; Bug with `transient-mark-mode' wrt `cua-mode' X-Mailer: VM 8.2.0a under 24.5.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -4.0 (----) This is a bug that I ran into with 24.5.1: * Run emacs -Q * Use shifted arrow keys to make some transient selection (on by default, so no need to do any customizations). * Use C-x b to switch to another buffer * Use unshifted arrows to move in this buffer * C-x b back into the first buffer * Now unshifted arrow movements continue to change the selection, as if it was made with C-SPC FWIW#1, it looks like this bug existed for a while -- I see it with 24.3.1 too. The reason I didn't see it then is that (IIUC) `cua-mode' did its own thing (correctly), and it looks like this was dropped and the functionality from simple.el is used instead. This is why I qualified this as "wrt cua-mode": the buggy behavior might be considered correct for people who have used it before and expect it to happen. (I doubt this, but that's subjective.) The reason for this was easy to track: `transient-mark-mode' is a *global* variable. After shifted movement, it gets a value of (only . t), and shifted movements turn it back to t even if they happen in a different buffer. (I don't see off-hand any quick way to fix it, but if anyone has an idea, I'd be happy to know about it.) The fix should involve some buffer-local version of `transient-mark-mode', but since it's also used globally as a mode, this might require a new variable. If the current behavior is intentional, then this becomes harder to fix, since it would require having both behaviors available. It would still be a bug since it changes functionality for people who use cua-mode -- which would enable this imaginary extension. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 22 01:27:08 2015 Received: (at 21731) by debbugs.gnu.org; 22 Oct 2015 05:27:09 +0000 Received: from localhost ([127.0.0.1]:60110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zp8P6-0000kB-JQ for submit@debbugs.gnu.org; Thu, 22 Oct 2015 01:27:08 -0400 Received: from mail-ig0-f182.google.com ([209.85.213.182]:37434) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zp8Om-0000jW-Ph for 21731@debbugs.gnu.org; Thu, 22 Oct 2015 01:27:07 -0400 Received: by igbhv6 with SMTP id hv6so53074785igb.0 for <21731@debbugs.gnu.org>; Wed, 21 Oct 2015 22:26:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=PR+2ijprkZit5WwLngcvT2VK+J6RgBJJka+y+6bfzlw=; b=QoPfpJPQsgf4cai1nS01Eyhat1RbP/VJSuXUKTb70KGE/GzKYJ/26OhMJF6p2Lw7hn DRiUHA2GcuRl7Vk16PbAlMV8jfgj5ni0QikctP0kUf97oklvpTPRee1MHEd8EwWpg5U7 e5YNwMEagFq+eJNMoqZd299tMefh8euSgSI+YYPr2KpuN67sQRdUEyByvrDWDjbE/srP Ttl50nGplkMMNhT3QKKuLsBzmv/1PGg3Ljn80KODrkcCPEhel/vcqj+7HYRbSjb3auag 6Oj6xHB0pXd2kLaS4c43aRJACpK/iQ4Yoq5jSHsSWOJEC+9ruFtkhKGx//9u2QUrKt4Z TDfg== X-Gm-Message-State: ALoCoQm97FqM6uhtmRScyvHVG4BB1Wh235KfNB4HtO7bcwfOeqTqA1acc9ljUck8X4WGGw4q98yx MIME-Version: 1.0 X-Received: by 10.51.17.39 with SMTP id gb7mr33307438igd.56.1445491608210; Wed, 21 Oct 2015 22:26:48 -0700 (PDT) Received: by 10.79.28.211 with HTTP; Wed, 21 Oct 2015 22:26:48 -0700 (PDT) In-Reply-To: References: <22056.29308.347026.83990@lambda.ccs.neu.edu> Date: Thu, 22 Oct 2015 01:26:48 -0400 Message-ID: Subject: Re: bug#21731: Acknowledgement (24.5; Bug with `transient-mark-mode' wrt `cua-mode') From: Eli Barzilay To: 21731@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 21731 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 (/) On Thu, Oct 22, 2015 at 1:24 AM, GNU bug Tracking System wrote: > [...] Actually, I did the obvious thing: (make-variable-buffer-local 'transient-mark-mode) and it seems to work fine, so maybe this is the only thing that is needed. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 22 10:52:11 2015 Received: (at 21731-done) by debbugs.gnu.org; 22 Oct 2015 14:52:11 +0000 Received: from localhost ([127.0.0.1]:32996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpHDv-0007Gs-Aw for submit@debbugs.gnu.org; Thu, 22 Oct 2015 10:52:11 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:62914) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpHDb-0007GA-48 for 21731-done@debbugs.gnu.org; Thu, 22 Oct 2015 10:52:10 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NWM00I00M9UA100@a-mtaout20.012.net.il> for 21731-done@debbugs.gnu.org; Thu, 22 Oct 2015 17:51:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWM00IZIMMC5240@a-mtaout20.012.net.il>; Thu, 22 Oct 2015 17:51:49 +0300 (IDT) Date: Thu, 22 Oct 2015 17:51:51 +0300 From: Eli Zaretskii Subject: Re: bug#21731: 24.5; Bug with `transient-mark-mode' wrt `cua-mode' In-reply-to: <22056.29308.347026.83990@lambda.ccs.neu.edu> X-012-Sender: halo1@inter.net.il To: Eli Barzilay Message-id: <83pp07t0qg.fsf@gnu.org> References: <22056.29308.347026.83990@lambda.ccs.neu.edu> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21731-done Cc: 21731-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: Eli Barzilay > Date: Thu, 22 Oct 2015 01:22:04 -0400 > > This is a bug that I ran into with 24.5.1: > > * Run emacs -Q > > * Use shifted arrow keys to make some transient selection (on by > default, so no need to do any customizations). > > * Use C-x b to switch to another buffer > > * Use unshifted arrows to move in this buffer > > * C-x b back into the first buffer > > * Now unshifted arrow movements continue to change the selection, as > if it was made with C-SPC Thanks, this is already fixed in the development sources (I did reproduce the problem in stock Emacs 24.5). I guess it was fixed when the implementation of transient-mark-mode and the region was rewritten. From unknown Sun Jun 22 07:36:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Nov 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator