From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Org links that point to filenames with space do not open Date: Thu, 6 Sep 2012 19:31:28 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae934106b96456d04c911ba36 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9mUD-00082n-8B for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 20:31:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9mUB-00076v-RA for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 20:31:53 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:45131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9mUB-00073I-LP for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 20:31:51 -0400 Received: by iagk10 with SMTP id k10so3075293iag.0 for ; Thu, 06 Sep 2012 17:31:28 -0700 (PDT) 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: Org Mode --14dae934106b96456d04c911ba36 Content-Type: text/plain; charset=ISO-8859-1 Hi list, 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. Any ideas? More info: - GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org - Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/) - Mac OSX Lion. Thanks, - Marcelo. --14dae934106b96456d04c911ba36 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi list,

I have several links that use the fi= le protocol to open files indexed in org entries. They work fine for entrie= s that point to file whose filenames do *not* contain space, but for entrie= s with space in them, it just fails silently. I.e:

=A0 [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pd= f]]

I even escaped the filename using the (shell-quote-a= rgument) function when indexing, but no luck.

Any = ideas?

More info:

- GNU Emacs 23.4.1 = (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org
- Org-mode version = 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed installation! /Applications/Em= acs.app/Contents/Resources/lisp/org/ and /Users/fullofcaffeine/.emacs.d/ven= dor/org/lisp/)
- Mac OSX Lion.

Thanks,

<= div>- Marcelo. --14dae934106b96456d04c911ba36-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jude DaShiell Subject: Re: Org links that point to filenames with space do not open Date: Thu, 6 Sep 2012 21:13:58 -0400 (EDT) Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9n8z-0003Xu-Bu for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 21:14:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9n8x-0002FJ-T6 for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 21:14:01 -0400 Received: from shellworld.net ([69.60.117.94]:49246 helo=server1.shellworld.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9n8x-0002DW-O9 for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 21:13:59 -0400 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: Marcelo de Moraes Serpa Cc: Org Mode I'm pretty sure a (") needs to go right after the first (:) and another needs to be just before the first (]) character. On Thu, 6 Sep 2012, Marcelo de Moraes Serpa wrote: > Hi list, > > 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. > > Any ideas? > > More info: > > - GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of > 2012-01-29 on bob.porkrind.org > - Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed > installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and > /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/) > - Mac OSX Lion. > > Thanks, > > - Marcelo. > --------------------------------------------------------------------------- jude Adobe fiend for failing to Flash From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Org links that point to filenames with space do not open Date: Fri, 07 Sep 2012 00:03:26 -0400 Message-ID: <3547.1346990606@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9pn0-0000y7-CI for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9pmz-000371-Ft for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:03:30 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:9729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9pmz-00036x-Av for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:03:29 -0400 In-Reply-To: Message from Marcelo de Moraes Serpa of "Thu, 06 Sep 2012 19:31:28 CDT." 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: Marcelo de Moraes Serpa Cc: Org Mode 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 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:47:16 -0500 Message-ID: References: <3547.1346990606@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51ba2bb60300504c9154d80 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9qTO-0006eo-4L for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:47:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9qTN-0008D9-6J for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:47:18 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:60114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9qTN-0008D3-1s for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 00:47:17 -0400 Received: by qcsd16 with SMTP id d16so1370539qcs.0 for ; Thu, 06 Sep 2012 21:47:16 -0700 (PDT) In-Reply-To: <3547.1346990606@alphaville> 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 --bcaec51ba2bb60300504c9154d80 Content-Type: text/plain; charset=ISO-8859-1 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 > --bcaec51ba2bb60300504c9154d80 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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

--bcaec51ba2bb60300504c9154d80-- 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--