From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: patch for org-compile-file Date: Thu, 22 Dec 2016 19:20:17 +0900 Message-ID: <953dd78a-d628-baca-620c-a686216e25c3@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------46F785917C8BC645D67C0BA5" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK0UA-0004X8-Jj for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 05:20:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cK0U5-0000EL-Li for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 05:20:30 -0500 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:36014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cK0U5-0000DJ-Fy for emacs-orgmode@gnu.org; Thu, 22 Dec 2016 05:20:25 -0500 Received: by mail-pg0-x234.google.com with SMTP id f188so96412615pgc.3 for ; Thu, 22 Dec 2016 02:20:22 -0800 (PST) Received: from [192.168.0.5] (119-231-22-59f1.kyt1.eonet.ne.jp. [119.231.22.59]) by smtp.gmail.com with ESMTPSA id s3sm21302089pfg.14.2016.12.22.02.20.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Dec 2016 02:20:20 -0800 (PST) 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 This is a multi-part message in MIME format. --------------46F785917C8BC645D67C0BA5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Dear Org List, I came across a typo that makes exporting to Latex impossible. The attached patch fixes this problem. This is the first patch I submit, and I changed just one line. If there is a problem, you can just fix this one place manually. All the best, Christian -- Christian Wittern, Kyoto --------------46F785917C8BC645D67C0BA5 Content-Type: text/x-patch; name="0001-Fixed-error-in-org-compile-file-out-dir.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fixed-error-in-org-compile-file-out-dir.patch" >From 597d30459c6637ce3c42d7155bcc1487e2e15ac9 Mon Sep 17 00:00:00 2001 From: ChristianW Date: Thu, 22 Dec 2016 19:17:17 +0900 Subject: [PATCH] Fixed error in org-compile-file out-dir --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 3ed7187..9b0b9cc 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -22680,7 +22680,7 @@ be set to a buffer or a buffer name. `shell-command' then uses it for output." (let* ((base-name (file-name-base source)) (full-name (file-truename source)) - (out-dir (file-name-directory source)) + (out-dir (file-name-directory full-name)) (output (expand-file-name (concat base-name "." ext) out-dir)) (time (current-time)) (err-msg (if (stringp err-msg) (concat ". " err-msg) ""))) -- 2.7.4 --------------46F785917C8BC645D67C0BA5--