From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: Org-mode link returned path is truncated when contains space Date: Mon, 5 Jun 2017 19:52:34 +0800 Message-ID: References: <87wp8x3ytw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1148ee68503551055135253e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHqZM-0003Mv-Fz for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 07:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHqZF-0006BM-UU for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 07:53:07 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:36637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHqZF-0006B5-NN for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 07:53:05 -0400 Received: by mail-wm0-x22d.google.com with SMTP id 7so71107375wmo.1 for ; Mon, 05 Jun 2017 04:53:05 -0700 (PDT) In-Reply-To: <87wp8x3ytw.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: Org-mode --001a1148ee68503551055135253e Content-Type: text/plain; charset="UTF-8" I checked Org-mode package version with `org-version`, get `9.0.7`, still have this issue. I updated to latest org-mode ELPA version. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Wed, May 31, 2017 at 10:06 PM, Nicolas Goaziou wrote: > Hello, > > "numbchild@gmail.com" writes: > > > I have a link in org-moe file like this: > > > > #+BEGIN_SRC org > > [[file:Data/images/logos/Full color Git logo for light backgrounds.png]] > > #+END_SRC > > > > > > *The file did exist.* > > > > I have elisp code like this to fontify link when the file does not > exist: > > > > #+BEGIN_SRC emacs-lisp > > (org-link-set-parameters > > "file" > > ;; TODO: fix path contains space case. > > :face (lambda (path) (if (file-exists-p path) 'org-link 'org-warning))) > > #+END_SRC > > > > > > But it is fontied as red. I tried to debug info by print of ~path~ in > > upper `org-link-set-parameters` lambda function. > > > > It return for path: > > > > #+BEGIN_EXAMPLE > > "Data/images/logos/Full" > > #+END_EXAMPLE > > Could you update Org to a more recent version, e.g., 9.0.7. It may have > been fixed already. > > Regards, > > -- > Nicolas Goaziou > --001a1148ee68503551055135253e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I checked Org-mode package version with `org-version`, get= `9.0.7`, still have this issue. I updated to latest org-mode ELPA version.=

=
[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG = key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDD= D B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div>

On Wed, May 31, 2017 at 10:06 PM, Nicolas Go= aziou <mail@nicolasgoaziou.fr> wrote:
Hello,

"numbchild@gmail.com" = <numbchild@gmail.com> writ= es:

> I have a link in org-moe file like this:
>
>=C2=A0 #+BEGIN_SRC org
>=C2=A0 [[file:Data/images/logos/Full color Git logo for light backgroun= ds.png]]
>=C2=A0 #+END_SRC
>
>
>=C2=A0 *The file did exist.*
>
>=C2=A0 I have elisp code like this to fontify link when the file does n= ot exist:
>
>=C2=A0 #+BEGIN_SRC emacs-lisp
>=C2=A0 (org-link-set-parameters
>=C2=A0 =C2=A0"file"
>=C2=A0 =C2=A0;; TODO: fix path contains space case.
>=C2=A0 =C2=A0:face (lambda (path) (if (file-exists-p path) 'org-lin= k 'org-warning)))
>=C2=A0 #+END_SRC
>
>
>=C2=A0 But it is fontied as red. I tried to debug info by print of ~pat= h~ in
> upper `org-link-set-parameters` lambda function.
>
>=C2=A0 It return for path:
>
>=C2=A0 #+BEGIN_EXAMPLE
>=C2=A0 "Data/images/logos/Full"
>=C2=A0 #+END_EXAMPLE

Could you update Org to a more recent version, e.g., 9.0.7. It may h= ave
been fixed already.

Regards,

--
Nicolas Goaziou

--001a1148ee68503551055135253e--