From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#28930: 24.5; cua-mode does not replace keyboard shortcuts in Edit menu Date: Fri, 02 Jul 2021 17:40:41 +0200 Message-ID: <87bl7kpvuu.fsf@gnus.org> References: <3260106.Luc2HRlV4k@omega> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40202"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 28931@debbugs.gnu.org, 28930@debbugs.gnu.org To: Bruno Haible Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 17:41:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzLI6-000AGq-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 17:41:18 +0200 Original-Received: from localhost ([::1]:50954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzLI5-0004hX-Nc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 11:41:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLHq-0004gz-Uy for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzLHq-0001ul-8K for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzLHq-0003b6-2w for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jul 2021 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28930 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 28930-submit@debbugs.gnu.org id=B28930.162524045313792 (code B ref 28930); Fri, 02 Jul 2021 15:41:02 +0000 Original-Received: (at 28930) by debbugs.gnu.org; 2 Jul 2021 15:40:53 +0000 Original-Received: from localhost ([127.0.0.1]:36923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzLHh-0003aN-H2 for submit@debbugs.gnu.org; Fri, 02 Jul 2021 11:40:53 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzLHf-0003a7-2m; Fri, 02 Jul 2021 11:40:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=B22i7h0YmAcdTFQe5xKjFwg2Jl28TklwNlNHsu77L/0=; b=q1W7guDrlH9cdeMFQCtcs1rak6 +r/smyS18ZulN9duB1sB3JLmxTpmcSsDOWiYr7i5j9gqt9FLFK3UFOAfnQbMRLW71YbFVQPhWYm+Q lDO//Xz5SBHnuAnHvLkxc9hsh/e7v6LO5jTubhih0MKOvVTILLA/ta4asDl1tcfGVbRU=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzLHW-00024Z-6D; Fri, 02 Jul 2021 17:40:44 +0200 X-Now-Playing: 75 Dollar Bill's _I Was Real_: "Every Last Coffee or Tea" In-Reply-To: <3260106.Luc2HRlV4k@omega> (Bruno Haible's message of "Sat, 21 Oct 2017 21:30:59 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209326 Archived-At: Bruno Haible 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