emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG] org-compile-file


From: Nicolas Goaziou
Subject: Re: [O] [BUG] org-compile-file
Date: Sun, 17 Jul 2016 14:29:58 +0200

Hello,

"Charles C. Berry" <address@hidden> writes:

> In trying to export to a pdf in another directory specified with a 
> relative pathname as the destination, I kept running into errors.
>
> It looks like `org-compile-file' does not handle such things gracefully.
>
> I believe that `out-dir' here is redundant as `default-directory' is 
> already set to `out-dir':
>
>        (let ((output (concat out-dir base-name "." ext)))
>
> and deleting it seems to cure the problems I am seeing.
>
> Here is an ECM
>
>
> #+BEGIN_SRC emacs-lisp
>    (make-directory "./tmp" t)
>    (shell-command "echo \"start...\" > ./tmp/ocf.txt")
>    (org-compile-file "./tmp/ocf.txt" '("echo \"done\" >> %b.txt") "txt")
> #+END_SRC
>
> #+RESULTS:
>
> Results should be
>
> : ocf.txt
>
> and there should be no error messages.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

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