emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* patch for org-compile-file
@ 2016-12-22 10:20 Christian Wittern
  2016-12-22 14:25 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Wittern @ 2016-12-22 10:20 UTC (permalink / raw)
  To: Org Mode Mailing List

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

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

[-- Attachment #2: 0001-Fixed-error-in-org-compile-file-out-dir.patch --]
[-- Type: text/x-patch, Size: 828 bytes --]

From 597d30459c6637ce3c42d7155bcc1487e2e15ac9 Mon Sep 17 00:00:00 2001
From: ChristianW <chris@mbp4-ubuntu.local>
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


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

* Re: patch for org-compile-file
  2016-12-22 10:20 patch for org-compile-file Christian Wittern
@ 2016-12-22 14:25 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-12-22 14:25 UTC (permalink / raw)
  To: Christian Wittern; +Cc: Org Mode Mailing List

Hello,

Christian Wittern <cwittern@gmail.com> writes:

> I came across a typo that makes exporting to Latex impossible.  The
> attached patch fixes this problem.

Thank you. However, I fixed it a couple of hours ago.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2016-12-22 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-22 10:20 patch for org-compile-file Christian Wittern
2016-12-22 14:25 ` 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).