all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Manuel Giraud via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Manuel Giraud via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>,  Po Lu <luangruo@yahoo.com>
Subject: Re: multiple kill and paste from X clipboard
Date: Fri, 02 Feb 2024 16:58:50 +0100	[thread overview]
Message-ID: <87fryakgcl.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <jwvle85tidx.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 31 Jan 2024 14:27:57 -0500")

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	other threads:[~2024-02-02 15:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-12 15:35 multiple kill and paste from X clipboard Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-12 15:49 ` Eli Zaretskii
2024-01-12 16:58   ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-12 19:49     ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-13  0:42     ` Po Lu
2024-01-13 10:08       ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-14 15:58       ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-14 22:45         ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-01-15 14:09           ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-17 14:52             ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-31 19:27               ` Stefan Monnier
2024-02-02 15:58                 ` Manuel Giraud via Users list for the GNU Emacs text editor [this message]
2024-02-02 16:54                   ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-12 20:12 ` orzodk
2024-01-12 21:32   ` Manuel Giraud via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fryakgcl.fsf@ledu-giraud.fr \
    --to=help-gnu-emacs@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=manuel@ledu-giraud.fr \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.