[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org-protocol: Allow optional port specification
From: |
Aaron Ecay |
Subject: |
Re: [O] [PATCH] org-protocol: Allow optional port specification |
Date: |
Thu, 03 Dec 2015 19:01:42 +0000 |
User-agent: |
Notmuch/0.21+24~gbceb651 (http://notmuchmail.org) Emacs/25.0.50.2 (x86_64-unknown-linux-gnu) |
Hi Sacha,
Thanks for your patch.
2015ko abenudak 2an, Sacha Chua-ek idatzi zuen:
>
> I was trying to get org-protocol to work on KDE Plasma 5.4.2. I set up
> my ~/.kde/share/kde4/services/org.protocol, but the standard
> org-protocol sample syntax:
>
> org-protocol://store-link://URL/TITLE
>
> resulted in the error:
>
> Malformed URL
> Port field was empty; source was "..."; scheme = "org-protocol",
> host = "store-link", path = "// ..."
>
> Modifying my Javascript to create links of the form:
>
> org-protocol://store-link:0//URL/TITLE
I think that the original format is an ad-hoc manipulation of the url
format which tries to pack two PROTOCOL:// sequences into one string.
Rather than adding a bogus port which just doubles down on this, a
better solution IMO would be to make org-protocol links valid urls in
another way, using the query string format:
org-protocol://store-link?url=[...]&title=[...]
This corresponds better to the url format: the protocol is org-protocol,
which determines emacs shall handle this link. The location is
store-link, which indicates a handler function which is an element of
‘org-protocol-protocol-alist’, and the query string gives the arguments
to this function.
Does that make sense?
Aaron
--
Aaron Ecay
- [O] [PATCH] org-protocol: Allow optional port specification, Sacha Chua, 2015/12/02
- Re: [O] [PATCH] org-protocol: Allow optional port specification, Rasmus, 2015/12/02
- Re: [O] [PATCH] org-protocol: Allow optional port specification,
Aaron Ecay <=
- [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Sacha Chua, 2015/12/04
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Aaron Ecay, 2015/12/05
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Sacha Chua, 2015/12/07
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Sacha Chua, 2015/12/07
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Sacha Chua, 2015/12/18
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Nicolas Goaziou, 2015/12/20
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Sacha Chua, 2015/12/21
- Re: [O] [PATCH] org-protocol: Allow key=val&key2=value2-style URLs, Nicolas Goaziou, 2015/12/22