unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6199: C-x C-x does not activate mark when cua-mode is on
@ 2010-05-16  1:34 Lennart Borgman
       [not found] ` <AANLkTimOMOvtsIOpapmlJclSWUn17_xw0fhhwnVzGxsU@mail.gmail.com>
  2012-04-13  7:12 ` Chong Yidong
  0 siblings, 2 replies; 5+ messages in thread
From: Lennart Borgman @ 2010-05-16  1:34 UTC (permalink / raw)
  To: 6199

It does without cua-mode (if transient-mode is on).

I think it should do it when cua-mode is on t.

I believe it should be activated to behave the same as when cua-mode is off.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6199: Fwd: bug#6199: C-x C-x does not activate mark when cua-mode is on
       [not found] ` <AANLkTimOMOvtsIOpapmlJclSWUn17_xw0fhhwnVzGxsU@mail.gmail.com>
@ 2010-05-16 19:15   ` Kim F. Storm
  2010-05-16 20:22     ` Lennart Borgman
  0 siblings, 1 reply; 5+ messages in thread
From: Kim F. Storm @ 2010-05-16 19:15 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6199

Hi Lennart

It is by design - maybe bad design, but it is documented:

| C-x C-x runs the command cua-exchange-point-and-mark, which is an
| interactive compiled Lisp function in `cua-base.el'.
|  
| It is bound to C-x C-x.
|  
| (cua-exchange-point-and-mark ARG)
|  
| Exchanges point and mark, but don't activate the mark.
| Activates the mark if a prefix argument is given.


I suggest that you could make an option cua-exchange-point-and-mark-activate-mark
(default off) that reverses the meaning of the prefix argument.

Feel free to make that (tiny) change.

Kim






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6199: Fwd: bug#6199: C-x C-x does not activate mark when cua-mode is on
  2010-05-16 19:15   ` bug#6199: Fwd: " Kim F. Storm
@ 2010-05-16 20:22     ` Lennart Borgman
  2010-05-16 20:31       ` Kim F. Storm
  0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman @ 2010-05-16 20:22 UTC (permalink / raw)
  To: Kim F. Storm; +Cc: 6199

On Sun, May 16, 2010 at 9:15 PM, Kim F. Storm <no-spam@cua.dk> wrote:
> Hi Lennart
>
> It is by design - maybe bad design, but it is documented:
>
> | C-x C-x runs the command cua-exchange-point-and-mark, which is an
> | interactive compiled Lisp function in `cua-base.el'.
> |
> | It is bound to C-x C-x.
> |
> | (cua-exchange-point-and-mark ARG)
> |
> | Exchanges point and mark, but don't activate the mark.
> | Activates the mark if a prefix argument is given.
>
>
> I suggest that you could make an option cua-exchange-point-and-mark-activate-mark
> (default off) that reverses the meaning of the prefix argument.


Oh, I see.  However reversing the default would let it be a little bit
more in line with transient-mark-mode now. That would make it easier
for those that want to move between cua-mode on/off. What do you
think? (There could still be an option of course.)


However there will still be no way change a "shift-style region
status" to a "set-mark-command style region status". Beeing able to do
that would be quite useful many times.

I suggest a small change in cua-set-mark for that. (cua-set-mark is
the cua version of set-mark-command.) As it is now cua-set-mark (ie
C-space) sets the mark to point if "shift-style region" is active. How
about instead converting the shift-style region to a "set-mark-command
style region"?

> Feel free to make that (tiny) change.
>
> Kim
>
>





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6199: Fwd: bug#6199: C-x C-x does not activate mark when cua-mode is on
  2010-05-16 20:22     ` Lennart Borgman
@ 2010-05-16 20:31       ` Kim F. Storm
  0 siblings, 0 replies; 5+ messages in thread
From: Kim F. Storm @ 2010-05-16 20:31 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Kim F. Storm, 6199

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Sun, May 16, 2010 at 9:15 PM, Kim F. Storm <no-spam@cua.dk> wrote:
>> Hi Lennart
>>
>> It is by design - maybe bad design, but it is documented:
>>
>> | C-x C-x runs the command cua-exchange-point-and-mark, which is an
>> | interactive compiled Lisp function in `cua-base.el'.
>> |
>> | It is bound to C-x C-x.
>> |
>> | (cua-exchange-point-and-mark ARG)
>> |
>> | Exchanges point and mark, but don't activate the mark.
>> | Activates the mark if a prefix argument is given.
>>
>>
>> I suggest that you could make an option cua-exchange-point-and-mark-activate-mark
>> (default off) that reverses the meaning of the prefix argument.
>
>
> Oh, I see.  However reversing the default would let it be a little bit
> more in line with transient-mark-mode now. That would make it easier
> for those that want to move between cua-mode on/off. What do you
> think? (There could still be an option of course.)
>
I think only very few users "move between cua-mode on/off".

But you can change the default if you like.

>
> However there will still be no way change a "shift-style region
> status" to a "set-mark-command style region status". Beeing able to do
> that would be quite useful many times.
I never missed that possibility, but YMMV.

>
> I suggest a small change in cua-set-mark for that. (cua-set-mark is
> the cua version of set-mark-command.) As it is now cua-set-mark (ie
> C-space) sets the mark to point if "shift-style region" is active. How
> about instead converting the shift-style region to a "set-mark-command
> style region"?

That would be ok with me.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6199: C-x C-x does not activate mark when cua-mode is on
  2010-05-16  1:34 bug#6199: C-x C-x does not activate mark when cua-mode is on Lennart Borgman
       [not found] ` <AANLkTimOMOvtsIOpapmlJclSWUn17_xw0fhhwnVzGxsU@mail.gmail.com>
@ 2012-04-13  7:12 ` Chong Yidong
  1 sibling, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2012-04-13  7:12 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6199

Lennart Borgman <lennart.borgman@gmail.com> writes:

> It does without cua-mode (if transient-mode is on).
>
> I think it should do it when cua-mode is on t.
>
> I believe it should be activated to behave the same as when cua-mode
> is off.

Closing (see discussion in Bug#11191).





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-13  7:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-16  1:34 bug#6199: C-x C-x does not activate mark when cua-mode is on Lennart Borgman
     [not found] ` <AANLkTimOMOvtsIOpapmlJclSWUn17_xw0fhhwnVzGxsU@mail.gmail.com>
2010-05-16 19:15   ` bug#6199: Fwd: " Kim F. Storm
2010-05-16 20:22     ` Lennart Borgman
2010-05-16 20:31       ` Kim F. Storm
2012-04-13  7:12 ` Chong Yidong

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).