all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#43322: Confusing menu entry for cua-mode
@ 2020-09-11  0:41 Stefan Kangas
  2020-09-11  6:54 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Stefan Kangas @ 2020-09-11  0:41 UTC (permalink / raw)
  To: 43322

Severity: wishlist

The menu item for cua-mode is, I claim unhelpfully, called "Shift
movement mark region (CUA)".  I am unable to parse what this even means
-- I thought it was about C-x and C-v, etc.?

Hmm... so after thinking about it for a while and reading the docstring,
I suppose it's saying that Shift-Left will mark things?  But that
already seems to be the case OOTB in "emacs -Q"?  OK, I give up...

Could we find a better name for this?





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

* bug#43322: Confusing menu entry for cua-mode
  2020-09-11  0:41 Stefan Kangas
@ 2020-09-11  6:54 ` Eli Zaretskii
  2020-09-11 19:30   ` Stefan Kangas
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-09-11  6:54 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 43322

> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 10 Sep 2020 17:41:13 -0700
> 
> The menu item for cua-mode is, I claim unhelpfully, called "Shift
> movement mark region (CUA)".  I am unable to parse what this even means
> -- I thought it was about C-x and C-v, etc.?

This doesn't appear by default, so the problem is not an acute one.

I think there's a typo there: it should say

  Shift movement marks the region (CUA)





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

* bug#43322: Confusing menu entry for cua-mode
  2020-09-11  6:54 ` Eli Zaretskii
@ 2020-09-11 19:30   ` Stefan Kangas
  2020-09-11 19:40     ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Stefan Kangas @ 2020-09-11 19:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43322

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stefan Kangas <stefan@marxist.se>
>> Date: Thu, 10 Sep 2020 17:41:13 -0700
>>
>> The menu item for cua-mode is, I claim unhelpfully, called "Shift
>> movement mark region (CUA)".  I am unable to parse what this even means
>> -- I thought it was about C-x and C-v, etc.?
>
> This doesn't appear by default, so the problem is not an acute one.
>
> I think there's a typo there: it should say
>
>   Shift movement marks the region (CUA)

Ah, right, it's only enabled if cua-enable-cua-keys is nil...

    (bindings--define-key menu [cua-emulation-mode]
      (menu-bar-make-mm-toggle
       cua-mode
       "Shift movement mark region (CUA)"
       "Use shifted movement keys to set and extend the region"
       (:visible (and (boundp 'cua-enable-cua-keys)
		      (not cua-enable-cua-keys)))))

But even fixing the typo here seems like it produce the incorrect
result, because AFAICT the region is already extended using <S-left> in
"emacs -Q"?





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

* bug#43322: Confusing menu entry for cua-mode
  2020-09-11 19:30   ` Stefan Kangas
@ 2020-09-11 19:40     ` Eli Zaretskii
  2020-10-23  0:37       ` Stefan Kangas
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-09-11 19:40 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 43322

> From: Stefan Kangas <stefan@marxist.se>
> Date: Fri, 11 Sep 2020 12:30:21 -0700
> Cc: 43322@debbugs.gnu.org
> 
> But even fixing the typo here seems like it produce the incorrect
> result, because AFAICT the region is already extended using <S-left> in
> "emacs -Q"?

What if the user turns off shift-select-mode?





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

* bug#43322: Confusing menu entry for cua-mode
  2020-09-11 19:40     ` Eli Zaretskii
@ 2020-10-23  0:37       ` Stefan Kangas
  2020-10-23 19:57         ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Stefan Kangas @ 2020-10-23  0:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43322

Eli Zaretskii <eliz@gnu.org> writes:

>> But even fixing the typo here seems like it produce the incorrect
>> result, because AFAICT the region is already extended using <S-left> in
>> "emacs -Q"?
>
> What if the user turns off shift-select-mode?

AFAICT, cua-mode respects shift-select-mode, which makes the menu entry
incorrect.

I tried using this, in emacs -Q:

(progn (setq cua-enable-cua-keys nil)
       (setq shift-select-mode nil)
       (cua-mode 1))

And I did not get "Shift movement mark region".  In fact, the only way
to change that is to set or unset shift-select-mode, with or without
cua-mode.





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-23  0:37       ` Stefan Kangas
@ 2020-10-23 19:57         ` Eli Zaretskii
  2020-10-23 21:17           ` Stefan Kangas
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-23 19:57 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 43322

> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 22 Oct 2020 17:37:40 -0700
> Cc: 43322@debbugs.gnu.org
> 
> > What if the user turns off shift-select-mode?
> 
> AFAICT, cua-mode respects shift-select-mode, which makes the menu entry
> incorrect.
> 
> I tried using this, in emacs -Q:
> 
> (progn (setq cua-enable-cua-keys nil)
>        (setq shift-select-mode nil)
>        (cua-mode 1))
> 
> And I did not get "Shift movement mark region".  In fact, the only way
> to change that is to set or unset shift-select-mode, with or without
> cua-mode.

So what do you propose to do about this bug report?





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-23 19:57         ` Eli Zaretskii
@ 2020-10-23 21:17           ` Stefan Kangas
  2020-10-24  8:05             ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Stefan Kangas @ 2020-10-23 21:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43322

Eli Zaretskii <eliz@gnu.org> writes:

>> AFAICT, cua-mode respects shift-select-mode, which makes the menu entry
>> incorrect.
>
> So what do you propose to do about this bug report?

We should probably replace "Shift movement mark region" with something
else.  But it's not clear to me how to best describe it; its other
features don't really lend themselves to a short one line description.

I see two options:

1. Change "Shift movement mark region" to "CUA Mode (without
   C-x/C-c/C-v)" with tooltip "Enable CUA Mode without setting
   C-x/C-c/C-v keys".  Perhaps we could even add on to the tooltip the
   explanatory text " (`cua-enable-cua-keys' is non-nil)".

2. If we can make the assumption that a user who has set
   `cua-enable-cua-keys' at least vaguely knows what they are doing,
   perhaps we could get away with just not doing anything special in
   that case.  In that case, we can get rid of the special handling and
   just show the default menu entry under all circumstances.

WDYT?  Any other ideas?





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-23 21:17           ` Stefan Kangas
@ 2020-10-24  8:05             ` Eli Zaretskii
  2020-10-29  1:05               ` Stefan Kangas
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-24  8:05 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 43322

> From: Stefan Kangas <stefan@marxist.se>
> Date: Fri, 23 Oct 2020 21:17:42 +0000
> Cc: 43322@debbugs.gnu.org
> 
> We should probably replace "Shift movement mark region" with something
> else.  But it's not clear to me how to best describe it; its other
> features don't really lend themselves to a short one line description.
> 
> I see two options:
> 
> 1. Change "Shift movement mark region" to "CUA Mode (without
>    C-x/C-c/C-v)" with tooltip "Enable CUA Mode without setting
>    C-x/C-c/C-v keys".  Perhaps we could even add on to the tooltip the
>    explanatory text " (`cua-enable-cua-keys' is non-nil)".
> 
> 2. If we can make the assumption that a user who has set
>    `cua-enable-cua-keys' at least vaguely knows what they are doing,
>    perhaps we could get away with just not doing anything special in
>    that case.  In that case, we can get rid of the special handling and
>    just show the default menu entry under all circumstances.
> 
> WDYT?  Any other ideas?

I think we should do 1, but how do we name that item? what does CUA
mode do nowadays when CUA keys are disabled?





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-24  8:05             ` Eli Zaretskii
@ 2020-10-29  1:05               ` Stefan Kangas
  2020-10-29 14:21                 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Stefan Kangas @ 2020-10-29  1:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43322

Eli Zaretskii <eliz@gnu.org> writes:

>> 1. Change "Shift movement mark region" to "CUA Mode (without
>>    C-x/C-c/C-v)" with tooltip "Enable CUA Mode without setting
>>    C-x/C-c/C-v keys".  Perhaps we could even add on to the tooltip the
>>    explanatory text " (`cua-enable-cua-keys' is non-nil)".
>
> I think we should do 1, but how do we name that item? what does CUA
> mode do nowadays when CUA keys are disabled?

It has cua-set-rectangle-mark, other than that it only seems to make
some relatively minor adjustments to behavior.

  `cua-mode' Minor Mode Bindings:
  key             binding
  ---             -------

  C-S-SPC		cua-toggle-global-mark
  <C-return>	cua-set-rectangle-mark
  <remap>		Prefix Command

  <remap> <clipboard-yank>	cua-paste
  <remap> <exchange-point-and-mark>
  				cua-exchange-point-and-mark
  <remap> <scroll-down>		cua-scroll-down
  <remap> <scroll-down-command>	cua-scroll-down
  <remap> <scroll-up>		cua-scroll-up
  <remap> <scroll-up-command>	cua-scroll-up
  <remap> <set-mark-command>	cua-set-mark
  <remap> <x-clipboard-yank>	cua-paste
  <remap> <yank>			cua-paste
  <remap> <yank-pop>		cua-paste-pop

So I'm not sure how to summarize this.

My proposal is to name the menu item "CUA Mode (without C-x/C-c/C-v)"
and the tooltip "Enable CUA Mode without setting C-x/C-c/C-v keys".  Not
sure that the proposal is very good, but it's what I can think of.  At
the very least it's better than the incorrect text we have now.





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-29  1:05               ` Stefan Kangas
@ 2020-10-29 14:21                 ` Eli Zaretskii
  2020-10-29 15:01                   ` Stefan Kangas
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-29 14:21 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 43322

> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 28 Oct 2020 18:05:18 -0700
> Cc: 43322@debbugs.gnu.org
> 
> My proposal is to name the menu item "CUA Mode (without C-x/C-c/C-v)"
> and the tooltip "Enable CUA Mode without setting C-x/C-c/C-v keys".

Sounds good (though I would use "without rebinding" instead of
"setting").





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-29 14:21                 ` Eli Zaretskii
@ 2020-10-29 15:01                   ` Stefan Kangas
  0 siblings, 0 replies; 15+ messages in thread
From: Stefan Kangas @ 2020-10-29 15:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43322

close 43322 28.1
thanks

Eli Zaretskii <eliz@gnu.org> writes:

>> My proposal is to name the menu item "CUA Mode (without C-x/C-c/C-v)"
>> and the tooltip "Enable CUA Mode without setting C-x/C-c/C-v keys".
>
> Sounds good (though I would use "without rebinding" instead of
> "setting").

Fixed on master.  Thanks.





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

* bug#43322: Confusing menu entry for cua-mode
       [not found]                 ` <<83wnz9aza1.fsf@gnu.org>
@ 2020-10-29 16:51                   ` Drew Adams
  2020-10-29 17:09                     ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Drew Adams @ 2020-10-29 16:51 UTC (permalink / raw)
  To: Eli Zaretskii, Stefan Kangas; +Cc: 43322

> > My proposal is to name the menu item "CUA Mode (without C-x/C-c/C-v)"
> > and the tooltip "Enable CUA Mode without setting C-x/C-c/C-v keys".
> 
> Sounds good (though I would use "without rebinding" instead of
> "setting").

Sorry, haven't followed this thread.

But just seeing that (out of context), I wonder
what is meant by it.  Isn't there a better way to
describe/name whatever behavior is meant by CUA
without C-x/C-c/C-v?  Those keys are what most
people think of when they think of CUA, no?

How about some positive description, instead of
this?  This seems a little like taking a walk
without walking.





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-29 16:51                   ` bug#43322: Confusing menu entry for cua-mode Drew Adams
@ 2020-10-29 17:09                     ` Eli Zaretskii
  0 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-29 17:09 UTC (permalink / raw)
  To: Drew Adams; +Cc: stefan, 43322

> Date: Thu, 29 Oct 2020 09:51:13 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 43322@debbugs.gnu.org
> 
> How about some positive description, instead of
> this?

Feel free to suggest one.  We tried (in the thread you didn't follow).





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

* bug#43322: Confusing menu entry for cua-mode
       [not found]                     ` <<83pn51arih.fsf@gnu.org>
@ 2020-10-29 17:54                       ` Drew Adams
  2020-10-29 18:15                         ` Stefan Kangas
  0 siblings, 1 reply; 15+ messages in thread
From: Drew Adams @ 2020-10-29 17:54 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: stefan, 43322

> > How about some positive description, instead of
> > this?
> 
> Feel free to suggest one.  We tried (in the thread you didn't follow).

If I knew CUA mode, and in particular what it is
minus those keys, I would.  Sorry, I don't.

If you've already tried and failed, so be it.
I guess the conclusion is that users of this
will know well enough what is meant by it, and
people who can't guess won't need to know...





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

* bug#43322: Confusing menu entry for cua-mode
  2020-10-29 17:54                       ` Drew Adams
@ 2020-10-29 18:15                         ` Stefan Kangas
  0 siblings, 0 replies; 15+ messages in thread
From: Stefan Kangas @ 2020-10-29 18:15 UTC (permalink / raw)
  To: Drew Adams, Eli Zaretskii; +Cc: 43322

Drew Adams <drew.adams@oracle.com> writes:

> If you've already tried and failed, so be it.

Yes, we couldn't find a better summary, unfortunately.

Hopefully someone with more knowledge of CUA Mode will revisit and
improve this in the future.





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

end of thread, other threads:[~2020-10-29 18:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <<CADwFkm=PZtb-wu05YvxoSfop7N9d2fi2CUiWEr6YU4vCCq44Pg@mail.gmail.com>
     [not found] ` <<83wo10hkgg.fsf@gnu.org>
     [not found]   ` <<CADwFkm=_G=yb+u1E7qoA=S6kn1HAw=ZKaeFXn1yPXL6vNUjM1A@mail.gmail.com>
     [not found]     ` <<83363of6fs.fsf@gnu.org>
     [not found]       ` <<CADwFkmkqnSvJnf9qjMkNXYHiZ6bzh6v0XvmhHj5GR5LZ3CD3nA@mail.gmail.com>
     [not found]         ` <<83d018iul1.fsf@gnu.org>
     [not found]           ` <<CADwFkmkzYU9wyLHmG8m9uiWYH75z55HthHAcmJ3KXq7cpERHuw@mail.gmail.com>
     [not found]             ` <<83zh4cgib6.fsf@gnu.org>
     [not found]               ` <<CADwFkmkPnY5JrmCP9NpjhQ4j8=yaUaAf326XGcZeAmBbu93TgA@mail.gmail.com>
     [not found]                 ` <<83wnz9aza1.fsf@gnu.org>
2020-10-29 16:51                   ` bug#43322: Confusing menu entry for cua-mode Drew Adams
2020-10-29 17:09                     ` Eli Zaretskii
     [not found] <<<CADwFkm=PZtb-wu05YvxoSfop7N9d2fi2CUiWEr6YU4vCCq44Pg@mail.gmail.com>
     [not found] ` <<<83wo10hkgg.fsf@gnu.org>
     [not found]   ` <<<CADwFkm=_G=yb+u1E7qoA=S6kn1HAw=ZKaeFXn1yPXL6vNUjM1A@mail.gmail.com>
     [not found]     ` <<<83363of6fs.fsf@gnu.org>
     [not found]       ` <<<CADwFkmkqnSvJnf9qjMkNXYHiZ6bzh6v0XvmhHj5GR5LZ3CD3nA@mail.gmail.com>
     [not found]         ` <<<83d018iul1.fsf@gnu.org>
     [not found]           ` <<<CADwFkmkzYU9wyLHmG8m9uiWYH75z55HthHAcmJ3KXq7cpERHuw@mail.gmail.com>
     [not found]             ` <<<83zh4cgib6.fsf@gnu.org>
     [not found]               ` <<<CADwFkmkPnY5JrmCP9NpjhQ4j8=yaUaAf326XGcZeAmBbu93TgA@mail.gmail.com>
     [not found]                 ` <<<83wnz9aza1.fsf@gnu.org>
     [not found]                   ` <<0421a811-2ed3-4e1d-a2e0-bd12accf73ef@default>
     [not found]                     ` <<83pn51arih.fsf@gnu.org>
2020-10-29 17:54                       ` Drew Adams
2020-10-29 18:15                         ` Stefan Kangas
2020-09-11  0:41 Stefan Kangas
2020-09-11  6:54 ` Eli Zaretskii
2020-09-11 19:30   ` Stefan Kangas
2020-09-11 19:40     ` Eli Zaretskii
2020-10-23  0:37       ` Stefan Kangas
2020-10-23 19:57         ` Eli Zaretskii
2020-10-23 21:17           ` Stefan Kangas
2020-10-24  8:05             ` Eli Zaretskii
2020-10-29  1:05               ` Stefan Kangas
2020-10-29 14:21                 ` Eli Zaretskii
2020-10-29 15:01                   ` Stefan Kangas

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.