emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cut and paste not working after xdg-open "org-protocol://store-link?


From: Tim Cross
Subject: Re: cut and paste not working after xdg-open "org-protocol://store-link?url=URL&title=TITLE"
Date: Mon, 31 Jan 2022 17:47:23 +1100
User-agent: mu4e 1.7.6; emacs 28.0.91

chris <inkbottle007@gmail.com> writes:

> On Monday, 31 January 2022 04:49:59 CET chris wrote:
>> On Monday, 31 January 2022 04:43:34 CET chris wrote:
>> > On Monday, 31 January 2022 04:28:06 CET Ihor Radchenko wrote:
>> > > chris <inkbottle007@gmail.com> writes:
>> > > >> What will happen if you try (kill-new "something") in your Emacs
>> > > >> (preferably, emacs -Q)? Will "something" be present in your Wayland
>> > > >> clipboard?
>> > > > 
>> > > > emacs -Q, then `M-: (kill-new "something")`
>> > > > Then `C-y` in `*scratch*`, string "something" is pasted.
>> > > > Then go to terminal (Konsole, specifically), `C-S-v`, string
>> > > > "something"
>> > > > is
>> > > > pasted, too.
>> > > 
>> > > Got it. What about emacsclient -e "(kill-new \"test123\")"?
>> > 
>> > `~/path-to-emacs/lib-src/emacsclient -e "(kill-new \"test123
>> > \")"`
>> > 
>> > Emacs side, `C-y` => "test123"
>> > 
>> > Terminal side, `C-S-v` => no trace of the "test123" string.
>> 
>> My, I missed one pivotal point:
>> Right after that operation, I cannot cut and paste straight away from
>> terminal to emacs.
>> If I copy and paste some string "test567" from terminal to Firefox or
>> whatever, it is working fine, but `C-y` in emacs is still "test123".
>> 
>
> Also, right now, emacs kill-ring is not very big, less than 10 items, so I 
> can 
> see all of them using `M-y`, and the most recent one, after several cut-and-
> paste operations none of them emacs related, is still "test123".
>
> And so now I do the converse operation and that works, and after that copying 
> from terminal to emacs works again.
>
> Bottom line, it seems org-mode independent.
>

This is most likely an Emacs 29 issue. The pgtk stuff has only very
recently been pulled into the mainline development tree and it is very
likely that little testing has been done on wayland using the pure gtk
build (and I'm assuming no wayland X window integration layer).

You probably need to log it as an Emacs bug. It might be worthwhile
asking on the emacs-devel list - it could be a known issue.



reply via email to

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