From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] org-compile-file Date: Sun, 17 Jul 2016 14:29:58 +0200 Message-ID: <87fur8h2gp.fsf@saiph.selenimh> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOlCs-0003R9-QB for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 08:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOlCq-0007f5-PC for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 08:30:01 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:42356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOlCq-0007f1-Ik for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 08:30:00 -0400 In-Reply-To: (Charles C. Berry's message of "Thu, 14 Jul 2016 19:25:20 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Charles C. Berry" Cc: Org-Mode mailing list Hello, "Charles C. Berry" 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