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

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

Re: multiple kill and paste from X clipboard


From: Manuel Giraud
Subject: Re: multiple kill and paste from X clipboard
Date: Fri, 12 Jan 2024 20:49:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Manuel Giraud via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Eli Zaretskii <eliz@gnu.org> writes:

[...]

>> Did you try using append-next-kill to make all the strings be a single
>> large kill?
>
> I guess that it would work but it is not what I intended to do.  I'd
> like to be able to paste each string separately.  For example: paste the
> first string in one text form, the second one elsewhere,…

FWIW, I have found that I could do the following:

(gui-set-selection 'CLIPBOARD first-string)
(gui-set-selection 'PRIMARY second-string)

But this has two drawbacks:
    - You cannot store more than two strings
    - The procedure for yanking is different for one string to the other
-- 
Manuel Giraud



reply via email to

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