unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Manuel Giraud <manuel@ledu-giraud.fr>
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: Wed, 31 Jan 2024 14:27:57 -0500	[thread overview]
Message-ID: <jwvle85tidx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ttncm2qo.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Wed,  17 Jan 2024 15:52:15 +0100")

> 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.


        Stefan




  reply	other threads:[~2024-01-31 19:27 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 [this message]
2024-02-02 15:58                 ` Manuel Giraud via Users list for the GNU Emacs text editor
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvle85tidx.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=manuel@ledu-giraud.fr \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).