GNU bug report logs - #11191
C-x C-x does not activate the selection anymore with cua-selection-mode

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> gnu.org>

Date: Sat, 7 Apr 2012 03:29:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 11191 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Kim Storm <storm <at> cua.dk>
Cc: Dan Nicolaescu <dann <at> gnu.org>, 11191 <at> debbugs.gnu.org,
	Chong Yidong <cyd <at> gnu.org>
Subject: Re: bug#11191: C-x C-x does not activate the selection anymore with
	cua-selection-mode
Date: Mon, 9 Apr 2012 13:06:33 +0200
On Mon, Apr 9, 2012 at 13:00, Kim Storm <storm <at> cua.dk> wrote:
> On 04/09/2012 07:50 AM, Dan Nicolaescu wrote:
>>
>> Chong Yidong<cyd <at> gnu.org>  writes:
>>
>>> Dan Nicolaescu<dann <at> gnu.org>  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<storm <at> cua.dk>
>>>   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.

I agree that it would be very annoying if C-x C-x activates the region
when cua-mode is on!




This bug report was last modified 13 years and 101 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.