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, 02 Feb 2024 16:58:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> As I said previously, it works with some X client (like xterm) but with
>> a more useful one (Firefox) I just get half of the selections.
>>
>> I tried to debug this and it seems to me that it is because Firefox
>> issues some "PRIMARY TARGETS" requests that ends up « consuming » the
>> user data (I'm not sure this is what happen but this is my
>> interpretation of it).
>
> I'm definitely not an expert in the way selection works in GUIs, nor how
> this works in Emacs.  So I can't judge what your patch does, sorry.
> This said, maybe a "safer" change is to propagate the information that
> a particular request is a "TARGETS" request to the
> `x-sent-selection-functions` so that *your* function can decide whether
> that should count as consuming or not.

Hi Stefan,

This is what is not clear to me because this information is already
propagated (and handled) via 'type' in my function 'next-primary'.
FWIW, it may also be a bug in firefox because this works in chromium for
example.
-- 
Manuel Giraud



reply via email to

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