summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-02-15 14:18:59 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2013-02-15 14:18:59 +0100
commit5bceb621424c9d8fda93b9c5cbef2c8bccaa59de (patch)
tree0b696f27fc55723b3ade3a1454bcdc9f99d33c78
parent5cdf84ea688f63d27fc24a53c1b04a0993308589 (diff)
downloadorg-mode-5bceb621424c9d8fda93b9c5cbef2c8bccaa59de.tar.gz
ox-latex/beamer: Fix reported error when no suitable class is found
* lisp/ox-beamer.el (org-beamer-template): Add missing `class' argument for `format-string'. * lisp/ox-latex.el (org-latex-template): Add missing `class' argument for `format-string'. Thanks to Sébastien Vauban for reporting the problem and providing the initial patch.
-rw-r--r--lisp/ox-beamer.el2
-rw-r--r--lisp/ox-latex.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el
index 7a7e4a4..dff9afd 100644
--- a/lisp/ox-beamer.el
+++ b/lisp/ox-beamer.el
@@ -844,7 +844,7 @@ holding export options."
"^[ \t]*\\\\documentclass\\(\\(\\[.*\\]\\)?\\)"
class-options header t nil 1)))))
(if (not document-class-string)
- (user-error "Unknown LaTeX class `%s'")
+ (user-error "Unknown LaTeX class `%s'" class)
(org-latex-guess-babel-language
(org-latex-guess-inputenc
(org-splice-latex-header
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index c135042..9d5b5c5 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1112,7 +1112,7 @@ holding export options."
"^[ \t]*\\\\documentclass\\(\\(\\[.*\\]\\)?\\)"
class-options header t nil 1)))))
(if (not document-class-string)
- (user-error "Unknown LaTeX class `%s'")
+ (user-error "Unknown LaTeX class `%s'" class)
(org-latex-guess-babel-language
(org-latex-guess-inputenc
(org-splice-latex-header