emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem exporting to PDF (and viewing)


From: Nick Dokos
Subject: Re: [O] Problem exporting to PDF (and viewing)
Date: Sun, 13 May 2012 00:53:15 -0400

Richard Stanton <address@hidden> wrote:

> I think the problem is in the org-mode code that interprets "%s." (and
> how this interacts with my bash shell). This is supposed to pass the
> executable the fully qualified file name, but somehow it ends up
> passing the directory twice, which (understandably) confuses the
> executable.
> 
> While this seems to have something to do with the bash shell I'm
> using, this works fine for everything else, so I'm pretty sure there's
> no fundamental problem in my setup, and it would be nice to find a way
> around this problem.
> 
> Two thoughts:
> 
> 1) Is there another string I could use, instead of %s, that results in
> the file name being passed without the path at all? This would
> probably cure the problem.
> 

Don't know, but I don't think so.

> 2) If not, where is the code that interprets %s? I can try stepping
> through it and see what I can find.
> 

It happens in org.el:org-open-file, specifically this piece of the
code (I think):

,----
|     (while (string-match "%s" cmd)
|       (setq cmd (replace-match
|                  (save-match-data
|                    (shell-quote-argument
|                     (convert-standard-filename file)))
|                  t t cmd)))
`----

Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]