|
From: | Max Nikulin |
Subject: | Re: [BUG] org-protocol-store-link does not account for argument type |
Date: | Thu, 27 Jan 2022 23:47:57 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 27/01/2022 22:13, Thuna wrote:
Could you, please, describe your actual problem?Currently, org-protocol-store-link, as a function, fails to work for new-style links. Doing the following: 1. M-: (org-protocol-store-link "url=U&title=T") 2. M-x org-insert-link and accepting the suggestions for the link and the description inserts "[[url=U&title=T]]" instead of "[[U][T]]", which should be the expected behavior according to the documentation of the function, unless I am misunderstanding it.
See the last paragraph of the docstring:
FNAME should be a property list. If not, an old-style link of the
^^^^^^^^^^^^^^
form URL/TITLE can also be used."
You pass a string for *new* URI style.Maybe there is another description of the interface that should be implemented by functions handling subprotocols.
You may look at the tests if you are going to use org-protocol in some special way.
[Prev in Thread] | Current Thread | [Next in Thread] |