From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mario Martelli Subject: Re: org-protocol documentation Date: Fri, 23 Jun 2017 09:50:10 +0200 Message-ID: <8CE2CFE3-2911-4369-8E93-E80CD25FD7E4@schnuddelhuddel.de> References: <68E12968-9AF5-440A-B22C-AC55B70BA910@schnuddelhuddel.de> <87k248b6p8.fsf@nicolasgoaziou.fr> <7C76EDC3-CC7E-4AFE-B45B-867752C1B33A@schnuddelhuddel.de> <87a8519rlg.fsf@nicolasgoaziou.fr> <8760fp9mui.fsf@nicolasgoaziou.fr> <2FAD7DF2-2A0C-4703-A383-BA8D3346C691@schnuddelhuddel.de> <18D83D3C-C472-4614-988F-1F1DA5EB5CEC@schnuddelhuddel.de> <87efub7psj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_49CAFED0-E6F4-4733-8C77-365FD236C853" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOJM9-00026R-NB for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 03:50:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOJM6-0002KZ-KH for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 03:50:17 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:34638) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOJM6-0002KB-9g for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 03:50:14 -0400 Received: by mail-wr0-x229.google.com with SMTP id 77so54197621wrb.1 for ; Fri, 23 Jun 2017 00:50:14 -0700 (PDT) In-Reply-To: <87efub7psj.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --Apple-Mail=_49CAFED0-E6F4-4733-8C77-365FD236C853 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, > Am 22.06.2017 um 22:03 schrieb Nicolas Goaziou = : >=20 > So as to ease the reviewing process, could you send it on the ML with > git format-patch sub-command? >=20 sure. I would like to add an example using the subprotocol = =E2=80=9Copen-source=E2=80=9D for hugo. If that sounds ok for you. For that I would need =E2=80=9Copen-source=E2=80=9D working, of course. > Also, I suggest using ox-texinfo from development version, if you can, > as the Texinfo output should be superior. have to set that up first. But I think I will need it anyway. ;) >>> I assume a bug around Line 527 in org-protocol.el >>>=20 >>> (let* ((base-url (plist-get (cdr prolist) :base-url)) >>> =E2=80=94> (wsearch (regexp-quote base-url))) = <=E2=80=94 >>>=20 >>> Could anyone confirm that? I=E2=80=99m unsure whether it might be a = local misconfiguration on my side or not. >=20 > Confirm what? That =E2=80=9Copen-source" is not working and is failing silently. > Why do you think there is a bug in the line above? Because I=E2=80=99m not experienced with elisp ;) I dug a little deeper and do now assume that there *might* be something = wrong with =E2=80=9Cf=E2=80=9D which is created in line 523 (f (plist-get (org-protocol-parse-parameters fname nil '(:url)) = :url))) and which has =E2=80=9Chttp:=E2=80=9D as value if I=E2=80=99m using old = style URIs and the whole URL = (=E2=80=9Chttp:/orgmode.org/worg/org-tutorials/org-import-rtm.html = =E2=80=9D in = my example) if I=E2=80=99m using new style URIs. I assume =E2=80=9Cf=E2=80=9D should be set to the base-url = ("http:/orgmode.org/worg/ =E2=80=9C in my = case).=20 Given that, the test in line 529=20 (when (string-match wsearch f) fails all the time causing the function to fail silently. Thank you for being patient with me. At the moment I=E2=80=99m seeing = parenthesises and backslashes everywhere :) Kind regards Mario =E2=80=94=20 --Apple-Mail=_49CAFED0-E6F4-4733-8C77-365FD236C853 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Am 22.06.2017 um 22:03 schrieb = Nicolas Goaziou <mail@nicolasgoaziou.fr>:

So as to ease the reviewing process, could you = send it on the ML with
git format-patch sub-command?


sure. I would like to add an example using the = subprotocol =E2=80=9Copen-source=E2=80=9D for hugo. If that sounds ok = for you.
For that I would need =E2=80=9Copen-source=E2=80=9D = working, of course.

Also, I suggest using = ox-texinfo from development version, if you can,
as the = Texinfo output should be superior.

have to = set that up first. But I think I will need it anyway. ;)

I assume a bug around Line 527 in org-protocol.el

     (let* = ((base-url (plist-get (cdr prolist) :base-url))
=E2=80=94>= ; =             &n= bsp; (wsearch (regexp-quote base-url))) =           <=E2=80=94<= br class=3D"">
Could anyone confirm that? I=E2=80=99m = unsure whether it might be a local misconfiguration on my side or = not.

Confirm = what?

That = =E2=80=9Copen-source" is not working and is failing silently.

Why do you think there is a bug in the line above?

Because = I=E2=80=99m not experienced with elisp ;)

I dug a little deeper and do now assume that = there *might* be something wrong with =E2=80=9Cf=E2=80=9D which is = created in line 523

(f = (plist-get (org-protocol-parse-parameters fname nil '(:url)) = :url)))

and which has =E2=80=9Chttp:=E2= =80=9D as value if I=E2=80=99m using old style URIs and the whole URL = (=E2=80=9Chttp:/orgmode.org/worg/org-tutorials/org-import-rtm.html=E2=80=9D= in my example) if I=E2=80=99m using new style URIs.
I assume = =E2=80=9Cf=E2=80=9D should be set to the base-url ("http:/orgmode.org/worg/=E2=80=9C= in my case). 

Given that, the = test in line 529 

(when = (string-match wsearch f)

fails all = the time causing the function to fail silently.

Thank you for being patient with me. At the moment = I=E2=80=99m seeing parenthesises and backslashes everywhere = :)

Kind = regards
Mario
=E2=80=94 


= --Apple-Mail=_49CAFED0-E6F4-4733-8C77-365FD236C853--