unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Kim Storm <storm@cua.dk>
Cc: Dan Nicolaescu <dann@gnu.org>,
	11191@debbugs.gnu.org, Chong Yidong <cyd@gnu.org>
Subject: 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	[thread overview]
Message-ID: <CANbX3657+AqvcqrfNdLv2PCMVSOy9TeQgxTaY=VMJ2GGCzhR-Q@mail.gmail.com> (raw)
In-Reply-To: <4F82C14D.7000100@cua.dk>

On Mon, Apr 9, 2012 at 13:00, Kim Storm <storm@cua.dk> wrote:
> On 04/09/2012 07:50 AM, Dan Nicolaescu wrote:
>>
>> Chong Yidong<cyd@gnu.org>  writes:
>>
>>> Dan Nicolaescu<dann@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@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!





  reply	other threads:[~2012-04-09 11:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-07  3:27 bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode Dan Nicolaescu
2012-04-08 13:18 ` Chong Yidong
2012-04-09  5:50   ` Dan Nicolaescu
2012-04-09 11:00     ` Kim Storm
2012-04-09 11:06       ` Lennart Borgman [this message]
2012-04-09 14:16       ` Dan Nicolaescu
2012-04-09 16:49         ` Kim Storm
2012-04-13  3:13           ` Dan Nicolaescu
2012-04-13  7:10             ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANbX3657+AqvcqrfNdLv2PCMVSOy9TeQgxTaY=VMJ2GGCzhR-Q@mail.gmail.com' \
    --to=lennart.borgman@gmail.com \
    --cc=11191@debbugs.gnu.org \
    --cc=cyd@gnu.org \
    --cc=dann@gnu.org \
    --cc=storm@cua.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).