From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Org links that point to filenames with space do not open Date: Thu, 6 Sep 2012 23:57:03 -0500 Message-ID: References: <3547.1346990606@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00235452f00459932e04c915700a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9qcq-0007gt-RD for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9qcp-0002gE-Qr for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:57:04 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:48125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9qcp-0002gA-Lb for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:57:03 -0400 Received: by qcsd16 with SMTP id d16so1373602qcs.0 for ; Thu, 06 Sep 2012 21:57:03 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Org Mode --00235452f00459932e04c915700a Content-Type: text/plain; charset=ISO-8859-1 OK, found the issue, had to use url-insert-entities-in-string instead of shell-quote-argument. Thanks, - Marcelo. On Thu, Sep 6, 2012 at 11:47 PM, Marcelo de Moraes Serpa < celoserpa@gmail.com> wrote: > Nick, it's a custom script... however, it looks like I was using the wrong > format. Instead of escaping the space chars, I should uri-encode them it > seems. I'll try that. Thanks! > > > On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos wrote: > >> Marcelo de Moraes Serpa wrote: >> >> > I have several links that use the file protocol to open files indexed in >> > org entries. They work fine for entries that point to file whose >> filenames >> > do *not* contain space, but for entries with space in them, it just >> fails >> > silently. I.e: >> > >> > [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]] >> > >> > I even escaped the filename using the (shell-quote-argument) function >> when >> > indexing, but no luck. >> > >> >> This is a link to a directory. I grabbed it with C-c l and inserted it >> with C-c C-l. It seems to work fine: >> >> [[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron] >> >> Nick >> > > --00235452f00459932e04c915700a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK, found the issue, had to use=A0url-insert-entities-in-string instead of= =A0shell-quote-argum= ent.

Thanks,
<= font color=3D"#222222" face=3D"arial, sans-serif">
- Marcelo.

On Thu, Sep 6, 2012 at 11:47 PM, Marc= elo de Moraes Serpa <celoserpa@gmail.com> wrote:
Nick, it's a custom script... however, it=A0looks like I was using= the wrong format. Instead of escaping the space chars, I should uri-encode= them it seems. I'll try that. Thanks!


On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:

> I have several links that use the file protocol to open files indexed = in
> org entries. They work fine for entries that point to file whose filen= ames
> do *not* contain space, but for entries with space in them, it just fa= ils
> silently. I.e:
>
> =A0 [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]]
>
> I even escaped the filename using the (shell-quote-argument) function = when
> indexing, but no luck.
>

This is a link to a directory. I grabbed it with C-c l and inserted i= t
with C-c C-l. It seems to work fine:

[[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron]
Nick


--00235452f00459932e04c915700a--