From: chris <inkbottle007@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: cut and paste not working after xdg-open "org-protocol://store-link?url=URL&title=TITLE"
Date: Mon, 31 Jan 2022 03:13:24 +0100 [thread overview]
Message-ID: <22526663.8SHm2n8hJX@pluto> (raw)
In-Reply-To: <87sft4g0zp.fsf@localhost>
On Monday, 31 January 2022 02:14:34 CET Ihor Radchenko wrote:
> chris <inkbottle007@gmail.com> writes:
> > After doing `xdg-open "org-protocol://store-link?url=URL&title=TITLE"`.
> > The string "URL" is pushed into Emacs kill-ring.
> > But, this very string "URL", is not inserted into Wayland clipboard.
>
> I am not using Wayland. However, if I just do (kill-new "test") in X and
> my select-enable-primary is nil (default) - "test" will not go to my X
> clipboard. It is the default behaviour of Emacs in X that has nothing to
> do with Org mode.
>
> 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.
Also, I understand your point, but the fact that the copying is working or not
working, in that direction, specifically, after using `xdg-open "org-
protocol://store-link?url=URL&title=TITLE"`, etc...
Is really a detail in what is hindering the workflow there. What is hindering
the workflow is that the cut and past in the opposite direction, namely from
the terminal to emacs, stops working from that point onward.
And that is really cumbersome.
And again, at that point the only workaround I've found to have the cut and
past from terminal to emacs working again, is to perform one operation of
copying from emacs to the terminal.
If ever I omit that workaround step, next time I'll copy something from the
terminal to emacs, it will end up in pasting the string that has been
initially inserted into the kill-ring by `xdg-open "org-protocol://store-link?
url=URL&title=TITLE"` possibly hours before, so to speak.
And no, even though `M-: (kill-new "something")` is putting "something" in
both kill-ring and wayland-clipboard as stated above, `xdg-open "org-
protocol://store-link?url=URL&title=TITLE"`, is only putting "URL" in the
kill-ring, or so I have observe to the best of my knowledge: and it is not the
issue in my workflow, only an observation I've made.
>
> Best,
> Ihor
next prev parent reply other threads:[~2022-01-31 2:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-27 0:03 cut and paste not working after xdg-open "org-protocol://store-link?url=URL&title=TITLE" chris
2022-01-28 12:40 ` Max Nikulin
2022-01-30 3:12 ` chris
2022-01-30 3:36 ` Ihor Radchenko
2022-01-30 18:38 ` chris
2022-01-31 1:14 ` Ihor Radchenko
2022-01-31 2:13 ` chris [this message]
2022-01-31 3:28 ` Ihor Radchenko
2022-01-31 3:43 ` chris
2022-01-31 3:49 ` chris
2022-01-31 4:00 ` chris
2022-01-31 6:47 ` Tim Cross
2022-01-31 16:29 ` Max Nikulin
2022-02-01 5:48 ` chris
2022-02-01 5:57 ` chris
2022-02-02 16:49 ` Max Nikulin
2022-01-30 8:31 ` Max Nikulin
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=22526663.8SHm2n8hJX@pluto \
--to=inkbottle007@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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.