emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Thuna <thuna.cing@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [BUG] org-protocol-store-link does not account for argument type
Date: Thu, 27 Jan 2022 23:47:57 +0700	[thread overview]
Message-ID: <c96354f5-9aa1-1eb7-4363-a4ea10416790@gmail.com> (raw)
In-Reply-To: <87v8y51aa5.fsf@gmail.com>

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.


  reply	other threads:[~2022-01-27 17:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26 23:02 [BUG] org-protocol-store-link does not account for argument type Thuna
2022-01-27 14:49 ` Max Nikulin
2022-01-27 15:13   ` Thuna
2022-01-27 16:47     ` Max Nikulin [this message]
2022-01-27 18:15       ` Thuna
2022-01-28 12:21         ` 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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c96354f5-9aa1-1eb7-4363-a4ea10416790@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=thuna.cing@gmail.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/org-mode.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).