|
From: | chris |
Subject: | cut and paste not working after xdg-open "org-protocol://store-link?url=URL&title=TITLE" |
Date: | Thu, 27 Jan 2022 01:03:08 +0100 |
Hi people,
First: `xdg-open "org-protocol://store-link?url="" from a terminal.
Then `M-x org-insert-link` in emacs, or not (it makes no difference).
Then cut-and-paste from non-emacs-application (e.g., Kde's Konsole, or Firefox) to emacs.
When doing `C-y` what it pastes is "URL", not what I have copied from Firefox.
For it to work again: one cut-and-paste operation from emacs to emacs.
Then it works again until the next time.
Doing `C-k` is enough, but it's still cumbersome.
My compositor is Wayland. It was like this, before, with `emacs-pgtk` 28.0.50.
It is still like that with: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-01-26
System is debian sid upgraded just before.
Thanks,
Chris
PS: some XY-problem:
What sort of argument to pass to `org-protocol-store-link`.
When I do `(org-protocol-parse-parameters "url="" t '(:url :title))` it works.
It works when I do `xdg-open "org-protocol://store-link?url="" />` from a terminal.
But why is there a `nil` here:
https://github.com/emacs-mirror/emacs/blob/19dcb237/lisp/org/org-protocol.el#L467
And why is it working at all from `xdg-open "org-protocol://store-link?url="" with a `nil` in that position?
Note: `(org-protocol-store-link "U/T")` works, `(org-protocol-store-link "url="" doesn't work. Produces link `[[url="" instead of `[[U][T]]`.
[Prev in Thread] | Current Thread | [Next in Thread] |