all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Wittern <cwittern@gmail.com>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: patch for org-compile-file
Date: Thu, 22 Dec 2016 19:20:17 +0900	[thread overview]
Message-ID: <953dd78a-d628-baca-620c-a686216e25c3@gmail.com> (raw)

[-- 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


             reply	other threads:[~2016-12-22 10:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-22 10:20 Christian Wittern [this message]
2016-12-22 14:25 ` patch for org-compile-file Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=953dd78a-d628-baca-620c-a686216e25c3@gmail.com \
    --to=cwittern@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.