From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 71656@debbugs.gnu.org, John Heidemann <johnh@isi.edu>
Subject: bug#71656: secondary selection and mouse-drag-secondary-pasting is broken in 29.3 under wayland
Date: Thu, 20 Jun 2024 14:39:28 +0800 [thread overview]
Message-ID: <874j9o3yov.fsf@yahoo.com> (raw)
In-Reply-To: <86sex8nsbx.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 20 Jun 2024 07:36:34 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: John Heidemann <johnh@isi.edu>
>> Date: Wed, 19 Jun 2024 12:33:04 -0700
>>
>> Since Fedora 40 and emacs-29.3, mouse-drag-secondary-pasting has thrown
>> the error "Could not assert ownership over selection: SECONDARY".
>>
>> This is in a default Fedora 40 install with the emacs-29.3-6.fc40.x86_64
>> package, running under Wayland. I think F40 started using native
>> wayland and gtk, which perhaps lost support for secondary selections?
>>
>>
>> To reproduce:
>>
>> start emacs -q
>>
>> In *scratch* run:
>>
>> (require 'mouse-copy)
>> (global-set-key [M-down-mouse-1] 'mouse-drag-secondary-pasting)
>>
>> Then hold down meta and right click and drag over a word.
>>
>> Expected behavior:
>>
>> The text you drag over should be copied to the current location.
>>
>> Actual behavior:
>> error "Could not assert ownership over selection: SECONDARY"
>> and no copying happens.
>>
>>
>> I was the original author of mouse-copy.el and I miss its easy
>> plan-9-like copy what I just moused over.
>>
>> I'm happy to patch its code, but I'd like to know what changed so I can
>> know what I need to work around.
>>
>>
>> Thanks for any pointers,
>
> Thanks. Po Lu, can you please look into and fix this, or help John
> fix it?
John, this error is signaled when the SECONDARY selection is not
implemented by your Wayland compositor. I don't believe this is any
responsibility of ours, and hence your Lisp code should resort to a
different selection on PGTK systems.
next prev parent reply other threads:[~2024-06-20 6:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 19:33 bug#71656: secondary selection and mouse-drag-secondary-pasting is broken in 29.3 under wayland John Heidemann
2024-06-20 4:36 ` Eli Zaretskii
2024-06-20 6:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-06-20 20:16 ` John Heidemann
2024-06-21 1:34 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=874j9o3yov.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=71656@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=johnh@isi.edu \
--cc=luangruo@yahoo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).