GNU bug report logs -
#73830
using one expression to make multiple X selections
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73830 in the body.
You can then email your comments to 73830 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73830
; Package
emacs
.
(Wed, 16 Oct 2024 01:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
libreville <libreville <at> riseup.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 16 Oct 2024 01:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
My apologies, that should of course have read "sleep-for 1", not
"wait-for 1".
On 2024-10-15 13:59, libreville wrote:
>
> (progn
> (gui-set-selection 'CLIPBOARD "3")
> (wait-for 1)
> (gui-set-selection 'CLIPBOARD "4"))
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73830
; Package
emacs
.
(Wed, 16 Oct 2024 19:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi there,
going by the list archive, my first email didn't go through. Here it is
again in case that's right:
Hello,
I stumbled on this while trying to elisp a few things into my X
clipboard manager. Evaluating these two expressions in turn:
(gui-set-selection 'CLIPBOARD "1")
(gui-set-selection 'CLIPBOARD "2")
results in both "1" and "2" being saved to the clipboard history.
However:
(progn
(gui-set-selection 'CLIPBOARD "1")
(gui-set-selection 'CLIPBOARD "2"))
results in "2" being saved to the clipboard history but, contrary to
what I would expect, not "1". On the other hand this:
(progn
(gui-set-selection 'CLIPBOARD "3")
(sleep-for 1)
(gui-set-selection 'CLIPBOARD "4"))
gets both "3" and "4" onto the clipboard (history). I get similar
results with kill-new in place of gui-set-selection 'CLIBOARD and with
other ways of grouping the two kills into one expression.
Why does waiting work around the problem?
Tested with both copyq and clipman / Emacs 28.2 / Xfce.
Best,
liv.
On 2024-10-15 18:04, libreville wrote:
> My apologies, that should of course have read "sleep-for 1", not
> "wait-for 1".
>
> On 2024-10-15 13:59, libreville wrote:
>
>>
>> (progn
>> (gui-set-selection 'CLIPBOARD "3")
>> (wait-for 1)
>> (gui-set-selection 'CLIPBOARD "4"))
>>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73830
; Package
emacs
.
(Wed, 16 Oct 2024 21:56:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 73830 <at> debbugs.gnu.org (full text, mbox):
libreville <libreville <at> riseup.net> writes:
>
> Why does waiting work around the problem?
>
> Tested with both copyq and clipman / Emacs 28.2 / Xfce.
Have you tried with a more recent version of Emacs?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73830
; Package
emacs
.
(Wed, 16 Oct 2024 23:50:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 73830 <at> debbugs.gnu.org (full text, mbox):
libreville <libreville <at> riseup.net> writes:
> Hi there,
>
> going by the list archive, my first email didn't go through. Here it is
> again in case that's right:
>
>
> Hello,
>
> I stumbled on this while trying to elisp a few things into my X
> clipboard manager. Evaluating these two expressions in turn:
>
> (gui-set-selection 'CLIPBOARD "1")
> (gui-set-selection 'CLIPBOARD "2")
>
> results in both "1" and "2" being saved to the clipboard history.
> However:
>
> (progn
> (gui-set-selection 'CLIPBOARD "1")
> (gui-set-selection 'CLIPBOARD "2"))
>
> results in "2" being saved to the clipboard history but, contrary to
> what I would expect, not "1". On the other hand this:
>
> (progn
> (gui-set-selection 'CLIPBOARD "3")
> (sleep-for 1)
> (gui-set-selection 'CLIPBOARD "4"))
>
> gets both "3" and "4" onto the clipboard (history). I get similar
> results with kill-new in place of gui-set-selection 'CLIBOARD and with
> other ways of grouping the two kills into one expression.
>
> Why does waiting work around the problem?
Because it takes time for X clipboard managers to respond to selection
ownership changes and to complete reading from other programs'
selections.
Not a bug, sorry.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73830
; Package
emacs
.
(Thu, 17 Oct 2024 11:48:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 73830 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 17/10/2024 1:49, Po Lu wrote:
>> Why does waiting work around the problem?
> Because it takes time for X clipboard managers to respond to selection
> ownership changes and to complete reading from other programs'
> selections.
>
> Not a bug, sorry.
Thanks for the explanation, and no need to apologise!
For those of us wanting to read more on this, I dug around a bit and
found some explanations
here https://github.com/jhunt/xclipd,
here https://jameshunt.us/writings/x11-clipboard-management-foibles/,
and here
https://www.uninformativ.de/blog/postings/2017-04-02/0/POSTING-en.html
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sun, 27 Oct 2024 10:39:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
libreville <libreville <at> riseup.net>
:
bug acknowledged by developer.
(Sun, 27 Oct 2024 10:39:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 73830-done <at> debbugs.gnu.org (full text, mbox):
> Cc: 73830 <at> debbugs.gnu.org
> Date: Thu, 17 Oct 2024 13:29:38 +0200
> From: snooze button <snooze-button <at> riseup.net>
>
> On 17/10/2024 1:49, Po Lu wrote:
>
> Why does waiting work around the problem?
>
> Because it takes time for X clipboard managers to respond to selection
> ownership changes and to complete reading from other programs'
> selections.
>
> Not a bug, sorry.
>
> Thanks for the explanation, and no need to apologise!
>
> For those of us wanting to read more on this, I dug around a bit and found some explanations
>
> here https://github.com/jhunt/xclipd,
>
> here https://jameshunt.us/writings/x11-clipboard-management-foibles/,
>
> and here https://www.uninformativ.de/blog/postings/2017-04-02/0/POSTING-en.html
It sounds like there's nothing we can do here, so I'm now closing this
bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 24 Nov 2024 12:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 300 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.