emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org links that point to filenames with space do not open
@ 2012-09-07  0:31 Marcelo de Moraes Serpa
  2012-09-07  1:13 ` Jude DaShiell
  2012-09-07  4:03 ` Nick Dokos
  0 siblings, 2 replies; 5+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-07  0:31 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1012 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Org links that point to filenames with space do not open
  2012-09-07  0:31 Org links that point to filenames with space do not open Marcelo de Moraes Serpa
@ 2012-09-07  1:13 ` Jude DaShiell
  2012-09-07  4:03 ` Nick Dokos
  1 sibling, 0 replies; 5+ messages in thread
From: Jude DaShiell @ 2012-09-07  1:13 UTC (permalink / raw)
  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 <jdashiel@shellworld.net>
Adobe fiend for failing to Flash

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Org links that point to filenames with space do not open
  2012-09-07  0:31 Org links that point to filenames with space do not open Marcelo de Moraes Serpa
  2012-09-07  1:13 ` Jude DaShiell
@ 2012-09-07  4:03 ` Nick Dokos
  2012-09-07  4:47   ` Marcelo de Moraes Serpa
  1 sibling, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2012-09-07  4:03 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Org links that point to filenames with space do not open
  2012-09-07  4:03 ` Nick Dokos
@ 2012-09-07  4:47   ` Marcelo de Moraes Serpa
  2012-09-07  4:57     ` Marcelo de Moraes Serpa
  0 siblings, 1 reply; 5+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-07  4:47 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1460 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Org links that point to filenames with space do not open
  2012-09-07  4:47   ` Marcelo de Moraes Serpa
@ 2012-09-07  4:57     ` Marcelo de Moraes Serpa
  0 siblings, 0 replies; 5+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-07  4:57 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2357 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-07  4:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07  0:31 Org links that point to filenames with space do not open Marcelo de Moraes Serpa
2012-09-07  1:13 ` Jude DaShiell
2012-09-07  4:03 ` Nick Dokos
2012-09-07  4:47   ` Marcelo de Moraes Serpa
2012-09-07  4:57     ` Marcelo de Moraes Serpa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).