From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27530: patch to cut and copy secondary Date: Tue, 05 Sep 2017 18:08:30 +0300 Message-ID: <8360cx2nf5.fsf@gnu.org> References: <20170629.214304.1822535652145654069.tkk@misasa.okayama-u.ac.jp> <20170905.121104.688310267504171014.tkk@misasa.okayama-u.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1504624186 21840 195.159.176.226 (5 Sep 2017 15:09:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2017 15:09:46 +0000 (UTC) Cc: 27530@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 05 17:09:24 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpFTc-0004jw-LU for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 17:09:20 +0200 Original-Received: from localhost ([::1]:59557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFTj-0004Cx-IO for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 11:09:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFTR-000473-VZ for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 11:09:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpFTK-00069s-7O for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 11:09:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpFTK-00069d-3o for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 11:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpFTJ-0004hx-Rv for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 11:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Sep 2017 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27530 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27530-submit@debbugs.gnu.org id=B27530.150462412218057 (code B ref 27530); Tue, 05 Sep 2017 15:09:01 +0000 Original-Received: (at 27530) by debbugs.gnu.org; 5 Sep 2017 15:08:42 +0000 Original-Received: from localhost ([127.0.0.1]:51583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpFT0-0004hB-E1 for submit@debbugs.gnu.org; Tue, 05 Sep 2017 11:08:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpFSz-0004gu-42 for 27530@debbugs.gnu.org; Tue, 05 Sep 2017 11:08:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpFSp-0005sm-11 for 27530@debbugs.gnu.org; Tue, 05 Sep 2017 11:08:35 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFSo-0005sT-TV; Tue, 05 Sep 2017 11:08:30 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3775 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dpFSo-0000gN-DM; Tue, 05 Sep 2017 11:08:30 -0400 In-reply-to: <20170905.121104.688310267504171014.tkk@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Tue, 05 Sep 2017 12:11:04 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136605 Archived-At: > Date: Tue, 05 Sep 2017 12:11:04 +0900 (JST) > From: Tak Kunihiro > Cc: tkk@misasa.okayama-u.ac.jp > > I found the secondary selection is very useful. I sent a patch on > June 2017 and Drew inferred importance of commands to utilize the > secondary selection. > > > IMO, the first, and simplest, improvement to add to Emacs is > > a way to create and yank the secondary selection using only > > the keyboard, not the mouse. My guess is that the reason > > more users do not use the secondary selection is that there > > are no keyboard keybindings for it. > > I found that the exchange of primary and secondary can be implemented > into C-x C-x as `mouse-exchange-point-and-mark-secondary'. > > (global-set-key [remap exchange-point-and-mark] 'mouse-exchange-point-and-mark-secondary) Hmm... In Emacs 24, we have changed how selection works to conform with other modern X applications, by having primary selection set only via mouse gestures, whereas keyboard commands work with the clipboard. Doesn't your proposal go in the opposite direction? IOW, what is the logic of having keyboard commands set selections, when all the rest of the X world does the exact opposite? Or did the trend got reversed yet again? In any case, a command whose name starts with "mouse-" should have the "e" interactive spec, and should react to mouse gestures, not to keyboard keys. I also don't like advising users to remap "C-x C-x" to anything that smells a mouse. Thanks.