bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27530: patch to cut and copy secondary


From: Eli Zaretskii
Subject: bug#27530: patch to cut and copy secondary
Date: Tue, 05 Sep 2017 18:08:30 +0300

> Date: Tue, 05 Sep 2017 12:11:04 +0900 (JST)
> From: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp>
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]