From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: [BUG] org-compile-file Date: Thu, 14 Jul 2016 19:25:20 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNsoh-0007Ac-Gq for emacs-orgmode@gnu.org; Thu, 14 Jul 2016 22:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNsod-0000Cu-HW for emacs-orgmode@gnu.org; Thu, 14 Jul 2016 22:25:27 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:33677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNsod-0000Cj-94 for emacs-orgmode@gnu.org; Thu, 14 Jul 2016 22:25:23 -0400 Received: from [137.110.36.198] (unknown [137.110.36.198]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ccberry@ad.ucsd.edu) by act-bufferout-b2.ucsd.edu (Postfix) with ESMTPSA id 038F6101344 for ; Thu, 14 Jul 2016 19:25:20 -0700 (PDT) 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: 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