emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-compile-file
@ 2016-07-15  2:25 Charles C. Berry
  2016-07-17 12:29 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Charles C. Berry @ 2016-07-15  2:25 UTC (permalink / raw)
  To: Org-Mode mailing list



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

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

end of thread, other threads:[~2016-07-17 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-15  2:25 [BUG] org-compile-file Charles C. Berry
2016-07-17 12:29 ` Nicolas Goaziou

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