[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [BUG] org-compile-file
From: |
Charles C. Berry |
Subject: |
[O] [BUG] org-compile-file |
Date: |
Thu, 14 Jul 2016 19:25:20 -0700 |
User-agent: |
Alpine 2.20 (OSX 67 2015-01-07) |
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
--8<---------------cut here---------------start------------->8---
#+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.
--8<---------------cut here---------------end--------------->8---
Chuck
- [O] [BUG] org-compile-file,
Charles C. Berry <=