bug#43322: Confusing menu entry for cua-mode

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#43322: Confusing menu entry for cua-mode

Stefan Kangas
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?



Reply | Threaded
Open this post in threaded view
|

bug#43322: Confusing menu entry for cua-mode

Eli Zaretskii
> From: Stefan Kangas <[hidden email]>
> 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)



Reply | Threaded
Open this post in threaded view
|

bug#43322: Confusing menu entry for cua-mode

Stefan Kangas
Eli Zaretskii <[hidden email]> writes:

>> From: Stefan Kangas <[hidden email]>
>> 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"?