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

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

Re: How to make most functions don't modify X CLIPBOARD?


From: Eli Zaretskii
Subject: Re: How to make most functions don't modify X CLIPBOARD?
Date: Sat, 16 Jan 2021 09:13:54 +0200

> From: doltes <doltes512@gmail.com>
> Date: Fri, 15 Jan 2021 17:31:09 -0500
> 
> I've noticed that the following functions insert the killed content to
> the CLIPBOARD.
> 
> + kill-region (C-w)
> + kill-line (C-k)
> + kill-word (M-d)
> + backward-kill-word (M-DEL)
> 
> The only function I want to be able to modify the CLIPBOARD is
> "kill-ring-save" (M-w).
> 
> The reason I want to do this is because I suppose that whenever one of
> those functions (presented in the list above) is executed, the content
> is copied to both the "kill ring" and the CLIPBOARD, and I don't want my
> computer to use resources inserting something, into the X clipboard,
> which is not going to be pasted to another application.
> 
> Is there any way to do this?

You want to avoid copying only to the X clipboard, or also to the X
selection?

Depending on the answer, either change the value of
select-enable-clipboard or of interprogram-cut-function.



reply via email to

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