From e26deb647ff1df5ab754fc42da816d60470929aa Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 11 Apr 2010 10:14:21 -0600 Subject: [PATCH] fixes BUG in `org-export-as-latex' -- was only exporting the body MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bug was introduced in commit 1b40601ebd5de3746ab72d19d3258f815a402066 which sets the body-only option to true when called with a simple prefix argument, however it does not check that the prefix argument is non-null. Thanks to Valentin Wüstholz for reporting this bug --- lisp/org-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 6eb6fd40a..c63987c92 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -584,7 +584,7 @@ simply return the content of \begin{document}...\end{document}, without even the \begin{document} and \end{document} commands. when PUB-DIR is set, use this as the publishing directory." (interactive "P") - (when (and (not body-only) (listp arg)) (setq body-only t)) + (when (and (not body-only) arg (listp arg)) (setq body-only t)) (run-hooks 'org-export-first-hook) ;; Make sure we have a file name when we need it.