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 #26 received at 11191 <at> debbugs.gnu.org (full text, mbox):

From: Dan Nicolaescu <dann <at> gnu.org>
To: Kim Storm <storm <at> cua.dk>
Cc: 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: Thu, 12 Apr 2012 23:13:53 -0400
Kim Storm <storm <at> cua.dk> 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




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

Previous Next


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