emacs-devel
[Top][All Lists]
Advanced

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

Re: recent change to yanking behavior of the clipboard


From: Po Lu
Subject: Re: recent change to yanking behavior of the clipboard
Date: Mon, 07 Feb 2022 11:11:40 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> Doesn't that result in Emacs interfering with the primary selection of
>> other problems?  And also other programs refusing to paste text killed
>> by Emacs?

> I'm not sure what you mean.  When I kill text in Emacs (with `C-k' or
> the like), I want to be able to paste it with mouse-2 in other programs,
> if that's what you're getting at.

Text you cut from other programs will stop showing up in Emacs when you
press `C-y', since explicit paste commands are required to paste from
CLIPBOARD and not PRIMARY.

I think we save all text that gets killed into the primary selection
regardless of the value of `select-enable-primary'.  If not, that's a
bug.

IOW, when you press C-k at the beginning of a line, Emacs sets the
contents of CLIPBOARD and PRIMARY (what you paste with the middle mouse
button) to the contents of the line.

Then, when you press C-y, Emacs is supposed to look for the value in
CLIPBOARD (and never PRIMARY).

That means the only valid combination is the default, which is to have
`select-enable-clipboard' set to t and `select-enable-primary' set to
nil.


reply via email to

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