From: Lars Ingebrigtsen <larsi@gnus.org>
To: Bruno Haible <bruno@clisp.org>
Cc: 28931@debbugs.gnu.org, 28930@debbugs.gnu.org
Subject: bug#28930: 24.5; cua-mode does not replace keyboard shortcuts in Edit menu
Date: Fri, 02 Jul 2021 17:40:41 +0200 [thread overview]
Message-ID: <87bl7kpvuu.fsf@gnus.org> (raw)
In-Reply-To: <3260106.Luc2HRlV4k@omega> (Bruno Haible's message of "Sat, 21 Oct 2017 21:30:59 +0200")
Bruno Haible <bruno@clisp.org> writes:
> Someone has this customization in his ~/.emacs file:
> (cua-mode 1)
>
> This has the effect of enabling CUA mode. But the user is not
> aware of it, because the Edit menu displays:
>
> Undo C-x u
> Cut C-w
> Copy M-w
>
> As a consequence, the user does not feel familiar with this
> editor and does not dare to use the keystrokes he's familar with
> (Ctrl-C for Copy etc.).
>
> Suggestion: Make the Edit menu display
>
> Undo C-z
> Cut C-x
> Copy C-c
>
> Then the user would feel familiar and could use these
> keybindings without thinking about them.
(I'm going through old bug reports that unfortunately got little response at
the time.)
Let's see... this is from this stuff:
(bindings--define-key menu [copy]
;; ns-win.el said: Substitute a Copy function that works better
;; under X (for GNUstep).
`(menu-item "Copy" ,(if (featurep 'ns)
'ns-copy-including-secondary
'kill-ring-save)
:enable mark-active
:help "Copy text in region between mark and current position"
:keys ,(if (featurep 'ns)
"\\[ns-copy-including-secondary]"
"\\[kill-ring-save]")))
(etc)
I guess we could add a case for cua-mode in the :keys here, too? I've
never ever used cua-mode myself, though... C-x and C-x only work when
the region is active in cua-mode, I think? So... would it be accurate
to put them in the menu? I mean, we could check for an active region,
too, but would that be confusing?
Anybody have an opinion here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-07-02 15:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-21 19:30 bug#28931: 24.5; cua-mode does not replace keyboard shortcuts in Edit menu Bruno Haible
2021-07-02 15:40 ` Lars Ingebrigtsen [this message]
2021-07-31 16:19 ` bug#28930: " Lars Ingebrigtsen
2021-10-11 11:18 ` Lars Ingebrigtsen
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=87bl7kpvuu.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=28930@debbugs.gnu.org \
--cc=28931@debbugs.gnu.org \
--cc=bruno@clisp.org \
/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).