From unknown Sun Aug 17 04:13:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11191 <11191@debbugs.gnu.org> To: bug#11191 <11191@debbugs.gnu.org> Subject: Status: C-x C-x does not activate the selection anymore with cua-selection-mode Reply-To: bug#11191 <11191@debbugs.gnu.org> Date: Sun, 17 Aug 2025 11:13:16 +0000 retitle 11191 C-x C-x does not activate the selection anymore with cua-sele= ction-mode reassign 11191 emacs submitter 11191 Dan Nicolaescu severity 11191 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 06 23:28:21 2012 Received: (at submit) by debbugs.gnu.org; 7 Apr 2012 03:28:21 +0000 Received: from localhost ([127.0.0.1]:42960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGMK5-0005F1-17 for submit@debbugs.gnu.org; Fri, 06 Apr 2012 23:28:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50671) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGMK3-0005Ev-DJ for submit@debbugs.gnu.org; Fri, 06 Apr 2012 23:28:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGMJM-0001pD-0C for submit@debbugs.gnu.org; Fri, 06 Apr 2012 23:27:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,GAPPY_SUBJECT, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:47097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGMJL-0001p9-TB for submit@debbugs.gnu.org; Fri, 06 Apr 2012 23:27:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGMJK-0002Ch-DI for bug-gnu-emacs@gnu.org; Fri, 06 Apr 2012 23:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGMJI-0001os-GS for bug-gnu-emacs@gnu.org; Fri, 06 Apr 2012 23:27:33 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:57505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGMJI-0001ol-Cj for bug-gnu-emacs@gnu.org; Fri, 06 Apr 2012 23:27:32 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SGMJH-00079k-P2 for bug-gnu-emacs@gnu.org; Fri, 06 Apr 2012 23:27:31 -0400 From: Dan Nicolaescu To: bug-gnu-emacs@gnu.org Subject: C-x C-x does not activate the selection anymore with cua-selection-mode Date: Fri, 06 Apr 2012 23:27:31 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) emacs -Q M-x cua-selection-mode RET C-SPC C-f C-f C-f C-x C-x now the selection should be active, but it is not. This worked in emacs-23.3, so this is a regression. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 09:19:20 2012 Received: (at 11191) by debbugs.gnu.org; 8 Apr 2012 13:19:20 +0000 Received: from localhost ([127.0.0.1]:44528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGs1X-0002aH-Kd for submit@debbugs.gnu.org; Sun, 08 Apr 2012 09:19:20 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48140) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGs1V-0002aA-7E for 11191@debbugs.gnu.org; Sun, 08 Apr 2012 09:19:18 -0400 Received: from bb121-6-72-34.singnet.com.sg ([121.6.72.34]:43132 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SGs0f-0000VF-Db; Sun, 08 Apr 2012 09:18:26 -0400 From: Chong Yidong To: Kim F. Storm Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: Date: Sun, 08 Apr 2012 21:18:17 +0800 In-Reply-To: (Dan Nicolaescu's message of "Fri, 06 Apr 2012 23:27:31 -0400") Message-ID: <87vclapdk6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11191 Cc: Dan Nicolaescu , 11191@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Dan Nicolaescu writes: [recipe edited] > emacs -Q > M-x cua-selection-mode RET > M-< > C-SPC C-f C-f C-f C-g > C-x C-x > > now the selection should be active, but it is not. > This worked in emacs-23.3, so this is a regression. Looks like this change was made deliberately: revno: 102844 committer: Kim F. Storm branch nick: trunk timestamp: Fri 2011-01-14 16:06:17 +0100 message: * emulation/cua-base.el (cua--init-keymaps): Remap exchange-point-and-mark in cua-global-keymap. The docstring of `cua-exchange-point-and-mark' says it does not activate the mark. Kim, could you confirm that this was the intention? From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 01:51:14 2012 Received: (at 11191) by debbugs.gnu.org; 9 Apr 2012 05:51:14 +0000 Received: from localhost ([127.0.0.1]:45906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SH7VR-0003wS-Tq for submit@debbugs.gnu.org; Mon, 09 Apr 2012 01:51:14 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59881) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SH7VP-0003wL-OQ for 11191@debbugs.gnu.org; Mon, 09 Apr 2012 01:51:12 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SH7US-0001be-Vc; Mon, 09 Apr 2012 01:50:13 -0400 From: Dan Nicolaescu To: Chong Yidong Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: <87vclapdk6.fsf@gnu.org> Date: Mon, 09 Apr 2012 01:50:12 -0400 In-Reply-To: <87vclapdk6.fsf@gnu.org> (Chong Yidong's message of "Sun, 08 Apr 2012 21:18:17 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11191 Cc: 11191@debbugs.gnu.org, "Kim F. Storm" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Chong Yidong writes: > Dan Nicolaescu writes: > > [recipe edited] > >> emacs -Q >> M-x cua-selection-mode RET >> M-< >> C-SPC C-f C-f C-f C-g >> C-x C-x >> >> now the selection should be active, but it is not. >> This worked in emacs-23.3, so this is a regression. > > Looks like this change was made deliberately: > > revno: 102844 > committer: Kim F. Storm > branch nick: trunk > timestamp: Fri 2011-01-14 16:06:17 +0100 > message: > * emulation/cua-base.el (cua--init-keymaps): > Remap exchange-point-and-mark in cua-global-keymap. > > The docstring of `cua-exchange-point-and-mark' says it does not activate > the mark. > Kim, could you confirm that this was the intention? In emacs-22.3 and 23.3 it does activate the mark. C-x C-x also activates the mark in the trunk without cua-selection-mode. Wouldn't it be better that instead of changing something that has been present in two major releases and is consistent with the default behavior, to change the docstring? From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 07:01:32 2012 Received: (at 11191) by debbugs.gnu.org; 9 Apr 2012 11:01:32 +0000 Received: from localhost ([127.0.0.1]:46347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHCLj-0004YJ-QE for submit@debbugs.gnu.org; Mon, 09 Apr 2012 07:01:32 -0400 Received: from ispc3.dotserv.com ([194.126.234.26]:37059) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHCLh-0004Y8-EL for 11191@debbugs.gnu.org; Mon, 09 Apr 2012 07:01:30 -0400 Received: from localhost (localhost [127.0.0.1]) by ispc3.dotserv.com (Postfix) with ESMTP id 1FA32802629EF; Mon, 9 Apr 2012 13:00:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ispc3.dotserv.com Received: from ispc3.dotserv.com ([127.0.0.1]) by localhost (ispc3.dotserv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DGOwhPGSza4Z; Mon, 9 Apr 2012 13:00:29 +0200 (CEST) Received: from [10.1.82.9] (1405ds6-amb.0.fullrate.dk [95.166.178.253]) (Authenticated sender: storm@cua.dk) by ispc3.dotserv.com (Postfix) with ESMTPSA id B8EF780262A00; Mon, 9 Apr 2012 13:00:29 +0200 (CEST) Message-ID: <4F82C14D.7000100@cua.dk> Date: Mon, 09 Apr 2012 13:00:29 +0200 From: Kim Storm User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Dan Nicolaescu Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: <87vclapdk6.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 04/09/2012 07:50 AM, Dan Nicolaescu wrote: > Chong Yidong writes: > >> Dan Nicolaescu writes: >> >> [recipe edited] >> >>> emacs -Q >>> M-x cua-selection-mode RET >>> M-< >>> C-SPC C-f C-f C-f C-g >>> C-x C-x >>> >>> now the selection should be active, but it is not. >>> This worked in emacs-23.3, so this is a regression. >> Looks like this change was made deliberately: >> >> revno: 102844 >> committer: Kim F. Storm >> branch nick: trunk >> timestamp: Fri 2011-01-14 16:06:17 +0100 >> message: >> * emulation/cua-base.el (cua--init-keymaps): >> Remap exchange-point-and-mark in cua-global-keymap. >> >> The docstring of `cua-exchange-point-and-mark' says it does not activate >> the mark. >> Kim, could you confirm that this was the intention? > > In emacs-22.3 and 23.3 it does activate the mark. > C-x C-x also activates the mark in the trunk without > cua-selection-mode. > > Wouldn't it be better that instead of changing something that has been > present in two major releases and is consistent with the default behavior, > to change the docstring? > [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 GAPPY_SUBJECT Subject: contains G.a.p.p.y-T.e.x.t X-Debbugs-Envelope-To: 11191 Cc: 11191@debbugs.gnu.org, Chong Yidong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 04/09/2012 07:50 AM, Dan Nicolaescu wrote: > Chong Yidong writes: > >> Dan Nicolaescu writes: >> >> [recipe edited] >> >>> emacs -Q >>> M-x cua-selection-mode RET >>> M-< >>> C-SPC C-f C-f C-f C-g >>> C-x C-x >>> >>> now the selection should be active, but it is not. >>> This worked in emacs-23.3, so this is a regression. >> Looks like this change was made deliberately: >> >> revno: 102844 >> committer: Kim F. Storm >> branch nick: trunk >> timestamp: Fri 2011-01-14 16:06:17 +0100 >> message: >> * emulation/cua-base.el (cua--init-keymaps): >> Remap exchange-point-and-mark in cua-global-keymap. >> >> The docstring of `cua-exchange-point-and-mark' says it does not activate >> the mark. >> Kim, could you confirm that this was the intention? > > In emacs-22.3 and 23.3 it does activate the mark. > C-x C-x also activates the mark in the trunk without > cua-selection-mode. > > Wouldn't it be better that instead of changing something that has been > present in two major releases and is consistent with the default behavior, > to change the docstring? > [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 GAPPY_SUBJECT Subject: contains G.a.p.p.y-T.e.x.t On 04/09/2012 07:50 AM, Dan Nicolaescu wrote: > Chong Yidong writes: > >> Dan Nicolaescu writes: >> >> [recipe edited] >> >>> emacs -Q >>> M-x cua-selection-mode RET >>> M-< >>> C-SPC C-f C-f C-f C-g >>> C-x C-x >>> >>> now the selection should be active, but it is not. >>> This worked in emacs-23.3, so this is a regression. >> Looks like this change was made deliberately: >> >> revno: 102844 >> committer: Kim F. Storm >> branch nick: trunk >> timestamp: Fri 2011-01-14 16:06:17 +0100 >> message: >> * emulation/cua-base.el (cua--init-keymaps): >> Remap exchange-point-and-mark in cua-global-keymap. >> >> The docstring of `cua-exchange-point-and-mark' says it does not activate >> the mark. >> Kim, could you confirm that this was the intention? > > In emacs-22.3 and 23.3 it does activate the mark. > C-x C-x also activates the mark in the trunk without > cua-selection-mode. > > Wouldn't it be better that instead of changing something that has been > present in two major releases and is consistent with the default behavior, > to change the docstring? > The current behaviour is "by design" Personally, I find it very annoying if C-x C-x activates the mark with cua-mode - as it becomes very hard to enter another C-x C-x to cancel it (it actually requires three C-x typed rapidly -- otherwise it will delete the region. That is why cua-exchange-point-and-mark doesn't activate the mark by default. - but with reference to bug #6199 on the same subject, I have already approved to change the behaviour --- if anyone feels it is necessary. I think the following version should do the trick (defun cua-exchange-point-and-mark (arg) "Exchanges point and mark. Don't activate the mark if a prefix argument is given." (interactive "P") (let ((ma mark-active)) (exchange-point-and-mark) (if cua--rectangle (cua--rectangle-corner 0)) (if arg (setq mark-active ma)))) From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 07:08:02 2012 Received: (at 11191) by debbugs.gnu.org; 9 Apr 2012 11:08:02 +0000 Received: from localhost ([127.0.0.1]:46353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHCS1-0004hF-UB for submit@debbugs.gnu.org; Mon, 09 Apr 2012 07:08:02 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:53563) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHCS0-0004h4-L4 for 11191@debbugs.gnu.org; Mon, 09 Apr 2012 07:08:01 -0400 Received: by lbok13 with SMTP id k13so1531848lbo.3 for <11191@debbugs.gnu.org>; Mon, 09 Apr 2012 04:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=OExR4KtU4xRccgXwHxRb3YuHnmVWt3o7fUGUzcsmff0=; b=Xaa4mF2oUKO87AaTwcOzW5nkNMhUgz6jnJD9Q9N0FCpLNCe/scDrIFm17sQ0yEQaJm z1zzI/+osTUJyHfjeZZA7ZleRsutzJGdSqi1EsC1ZnOv+b2fPeKp3LWRNfGwB/6z5fU2 5qau7HHshUGHV1NJIdWbvHoiMR/FWiZWl1R+ZpJcgrBw960RITiTFcupoM/LXHxxty6L hqmxLnJFfV7kPWjpalaF6GTm2nKqmeEg856uhxgWOx2V5mIep8G0fVMFvr7sGxDSzl5M 03Lxg/ypEOMb6jiKGlI2/FlHpNgjhPLr7Jv4C2bkBL6144cJVXXSrDqu4dt0uqCpzq9Z ArZQ== Received: by 10.152.146.39 with SMTP id sz7mr10955412lab.3.1333969624063; Mon, 09 Apr 2012 04:07:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.74.232 with HTTP; Mon, 9 Apr 2012 04:06:33 -0700 (PDT) In-Reply-To: <4F82C14D.7000100@cua.dk> References: <87vclapdk6.fsf@gnu.org> <4F82C14D.7000100@cua.dk> From: Lennart Borgman Date: Mon, 9 Apr 2012 13:06:33 +0200 Message-ID: Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode To: Kim Storm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 11191 Cc: Dan Nicolaescu , 11191@debbugs.gnu.org, Chong Yidong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.6 (/) On Mon, Apr 9, 2012 at 13:00, Kim Storm wrote: > On 04/09/2012 07:50 AM, Dan Nicolaescu wrote: >> >> Chong Yidong =C2=A0writes: >> >>> Dan Nicolaescu =C2=A0writes: >>> >>> [recipe edited] >>> >>>> emacs -Q >>>> M-x cua-selection-mode RET >>>> M-< >>>> C-SPC C-f C-f C-f C-g >>>> C-x C-x >>>> >>>> now the selection should be active, but it is not. >>>> This worked in emacs-23.3, so this is a regression. >>> >>> Looks like this change was made deliberately: >>> >>> =C2=A0 revno: 102844 >>> =C2=A0 committer: Kim F. Storm >>> =C2=A0 branch nick: trunk >>> =C2=A0 timestamp: Fri 2011-01-14 16:06:17 +0100 >>> =C2=A0 message: >>> =C2=A0 * emulation/cua-base.el (cua--init-keymaps): >>> =C2=A0 Remap exchange-point-and-mark in cua-global-keymap. >>> >>> The docstring of `cua-exchange-point-and-mark' says it does not activat= e >>> the mark. >>> Kim, could you confirm that this was the intention? >> >> >> In emacs-22.3 and 23.3 it does activate the mark. >> C-x C-x also activates the mark in the trunk without >> cua-selection-mode. >> >> Wouldn't it be better that instead of changing something that has been >> present in two major releases and is consistent with the default behavio= r, >> to change the docstring? >> > > The current behaviour is "by design" > > Personally, I find it very annoying if C-x C-x activates the mark with > cua-mode - as it becomes very > hard to enter another C-x C-x to cancel it (it actually requires three C-= x > typed rapidly -- otherwise > it will delete the region. =C2=A0That is why cua-exchange-point-and-mark = doesn't > activate the mark > by default. I agree that it would be very annoying if C-x C-x activates the region when cua-mode is on! From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 10:17:43 2012 Received: (at 11191) by debbugs.gnu.org; 9 Apr 2012 14:17:43 +0000 Received: from localhost ([127.0.0.1]:46961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHFPb-0001XI-9d for submit@debbugs.gnu.org; Mon, 09 Apr 2012 10:17:43 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:41357) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHFPY-0001X9-3S for 11191@debbugs.gnu.org; Mon, 09 Apr 2012 10:17:41 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SHFOc-000757-BO; Mon, 09 Apr 2012 10:16:42 -0400 From: Dan Nicolaescu To: Kim Storm Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: <87vclapdk6.fsf@gnu.org> <4F82C14D.7000100@cua.dk> Date: Mon, 09 Apr 2012 10:16:42 -0400 In-Reply-To: <4F82C14D.7000100@cua.dk> (Kim Storm's message of "Mon, 09 Apr 2012 13:00:29 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11191 Cc: 11191@debbugs.gnu.org, Chong Yidong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Kim Storm writes: > On 04/09/2012 07:50 AM, Dan Nicolaescu wrote: >> Chong Yidong writes: >> >>> Dan Nicolaescu writes: >>> >>> [recipe edited] >>> >>>> emacs -Q >>>> M-x cua-selection-mode RET >>>> M-< >>>> C-SPC C-f C-f C-f C-g >>>> C-x C-x >>>> >>>> now the selection should be active, but it is not. >>>> This worked in emacs-23.3, so this is a regression. >>> Looks like this change was made deliberately: >>> >>> revno: 102844 >>> committer: Kim F. Storm >>> branch nick: trunk >>> timestamp: Fri 2011-01-14 16:06:17 +0100 >>> message: >>> * emulation/cua-base.el (cua--init-keymaps): >>> Remap exchange-point-and-mark in cua-global-keymap. >>> >>> The docstring of `cua-exchange-point-and-mark' says it does not activate >>> the mark. >>> Kim, could you confirm that this was the intention? >> >> In emacs-22.3 and 23.3 it does activate the mark. >> C-x C-x also activates the mark in the trunk without >> cua-selection-mode. >> >> Wouldn't it be better that instead of changing something that has been >> present in two major releases and is consistent with the default behavior, >> to change the docstring? >> > > The current behaviour is "by design" It might be, but the behavior before your changes has been available in two major releases (22.x and 23.x), with no complaints from users (that I could find). Changing behavior on a highly visible feature is not something that we should take lightly. > Personally, I find it very annoying if C-x C-x activates the mark with > cua-mode - as it becomes very > hard to enter another C-x C-x to cancel it (it actually requires three > C-x typed rapidly -- otherwise > it will delete the region. That is why cua-exchange-point-and-mark > doesn't activate the mark > by default. You might want to do something different for cua-mode vs cua-selection-mode (where C-x C-x has no other problems). > - but with reference to bug #6199 on the same subject, I have already > approved to change the behaviour > --- if anyone feels it is necessary. > > I think the following version should do the trick > > (defun cua-exchange-point-and-mark (arg) > "Exchanges point and mark. > Don't activate the mark if a prefix argument is given." > (interactive "P") > (let ((ma mark-active)) > (exchange-point-and-mark) > (if cua--rectangle > (cua--rectangle-corner 0)) > (if arg > (setq mark-active ma)))) From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 12:50:49 2012 Received: (at 11191) by debbugs.gnu.org; 9 Apr 2012 16:50:49 +0000 Received: from localhost ([127.0.0.1]:47048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHHnl-00056n-24 for submit@debbugs.gnu.org; Mon, 09 Apr 2012 12:50:49 -0400 Received: from ispc3.dotserv.com ([194.126.234.26]:55886) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHHni-00056d-BG for 11191@debbugs.gnu.org; Mon, 09 Apr 2012 12:50:47 -0400 Received: from localhost (localhost [127.0.0.1]) by ispc3.dotserv.com (Postfix) with ESMTP id CA4F08009BE45; Mon, 9 Apr 2012 18:49:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ispc3.dotserv.com Received: from ispc3.dotserv.com ([127.0.0.1]) by localhost (ispc3.dotserv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PfcAwfz2ELsf; Mon, 9 Apr 2012 18:49:45 +0200 (CEST) Received: from [10.1.82.9] (1405ds6-amb.0.fullrate.dk [95.166.178.253]) (Authenticated sender: storm@cua.dk) by ispc3.dotserv.com (Postfix) with ESMTPSA id 6FD038009ADF9; Mon, 9 Apr 2012 18:49:45 +0200 (CEST) Message-ID: <4F831328.5040303@cua.dk> Date: Mon, 09 Apr 2012 18:49:44 +0200 From: Kim Storm User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Dan Nicolaescu Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: <87vclapdk6.fsf@gnu.org> <4F82C14D.7000100@cua.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 11191 Cc: 11191@debbugs.gnu.org, Chong Yidong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) On 04/09/2012 04:16 PM, Dan Nicolaescu wrote: > You might want to do something different for cua-mode vs > cua-selection-mode (where C-x C-x has no other problems). > You are right -- maybe this version suits all: (defun cua-exchange-point-and-mark (arg) "Exchanges point and mark. Don't activate the mark if `cua-enable-cua-keys` is non-nil. Just activate the mark if a prefix argument is given. See also `exchange-point-and-mark'." (interactive "P") (if cua-enable-cua-keys (if arg (setq mark-active t) (let (mark-active) (exchange-point-and-mark) (if cua--rectangle (cua--rectangle-corner 0)))) (exchange-point-and-mark arg))) Would someone pls. commit this change. Here is a change log entry: * emulation/cua-base.el (cua-exchange-point-and-mark): Fallback to exchange-point-and-mark when cua-enable-cua-keys is nil. Then you can also close bug #6199 Thanks Kim From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 23:15:14 2012 Received: (at 11191) by debbugs.gnu.org; 13 Apr 2012 03:15:14 +0000 Received: from localhost ([127.0.0.1]:55393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIWyg-00084p-9V for submit@debbugs.gnu.org; Thu, 12 Apr 2012 23:15:14 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59403) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIWyd-00084e-2e for 11191@debbugs.gnu.org; Thu, 12 Apr 2012 23:15:12 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SIWxN-0003nH-7w; Thu, 12 Apr 2012 23:13:53 -0400 From: Dan Nicolaescu To: Kim Storm Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: <87vclapdk6.fsf@gnu.org> <4F82C14D.7000100@cua.dk> <4F831328.5040303@cua.dk> Date: Thu, 12 Apr 2012 23:13:53 -0400 In-Reply-To: <4F831328.5040303@cua.dk> (Kim Storm's message of "Mon, 09 Apr 2012 18:49:44 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11191 Cc: 11191@debbugs.gnu.org, Chong Yidong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Kim Storm writes: > On 04/09/2012 04:16 PM, Dan Nicolaescu wrote: >> You might want to do something different for cua-mode vs >> cua-selection-mode (where C-x C-x has no other problems). >> > > You are right -- maybe this version suits all: > > (defun cua-exchange-point-and-mark (arg) > "Exchanges point and mark. > > Don't activate the mark if `cua-enable-cua-keys` is non-nil. > Just activate the mark if a prefix argument is given. > > See also `exchange-point-and-mark'." > (interactive "P") > (if cua-enable-cua-keys > (if arg > (setq mark-active t) > (let (mark-active) > (exchange-point-and-mark) > (if cua--rectangle > (cua--rectangle-corner 0)))) > (exchange-point-and-mark arg))) > > Would someone pls. commit this change. This works fine. Yidong, I think this can go in whatever branch will be used for 24.1. (Sorry, I can't check it in myself). > Here is a change log entry: > > * emulation/cua-base.el (cua-exchange-point-and-mark): > Fallback to exchange-point-and-mark when cua-enable-cua-keys is nil. > > Then you can also close bug #6199 > > Thanks > Kim From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 13 03:12:01 2012 Received: (at 11191) by debbugs.gnu.org; 13 Apr 2012 07:12:01 +0000 Received: from localhost ([127.0.0.1]:55500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIafo-0005tT-Gc for submit@debbugs.gnu.org; Fri, 13 Apr 2012 03:12:00 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:34900) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIafl-0005tJ-If for 11191@debbugs.gnu.org; Fri, 13 Apr 2012 03:11:58 -0400 Received: from [155.69.18.242] (port=56468 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SIaeU-0006Ta-VW; Fri, 13 Apr 2012 03:10:39 -0400 From: Chong Yidong To: Dan Nicolaescu Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode References: <87vclapdk6.fsf@gnu.org> <4F82C14D.7000100@cua.dk> <4F831328.5040303@cua.dk> Date: Fri, 13 Apr 2012 15:10:30 +0800 In-Reply-To: (Dan Nicolaescu's message of "Thu, 12 Apr 2012 23:13:53 -0400") Message-ID: <87fwc82jkp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11191 Cc: 11191@debbugs.gnu.org, Kim Storm X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Dan Nicolaescu writes: >> Would someone pls. commit this change. > > This works fine. > > Yidong, I think this can go in whatever branch will be used for 24.1. > (Sorry, I can't check it in myself). Done. Thanks everyone. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 13 03:12:17 2012 Received: (at control) by debbugs.gnu.org; 13 Apr 2012 07:12:17 +0000 Received: from localhost ([127.0.0.1]:55504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIag4-0005uH-Cu for submit@debbugs.gnu.org; Fri, 13 Apr 2012 03:12:17 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:34908) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIag2-0005uA-ET for control@debbugs.gnu.org; Fri, 13 Apr 2012 03:12:15 -0400 Received: from [155.69.18.242] (port=56470 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SIaem-0006Tl-Gh for control@debbugs.gnu.org; Fri, 13 Apr 2012 03:10:57 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11191 Date: Fri, 13 Apr 2012 15:10:51 +0800 Message-ID: <87zkag3y4k.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11191 thanks From unknown Sun Aug 17 04:13:16 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, 11 May 2012 11:24:05 +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