From 2512bc972d43820f4078248959d97f706d9a555b Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 22 Feb 2009 20:51:19 +0100 Subject: [PATCH] LaTeX Export: Better error message for emphasis alist conflicts --- lisp/ChangeLog | 2 ++ lisp/org-export-latex.el | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a29a1b6f..1aa8e4944 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -3,6 +3,8 @@ * org-export-latex.el (org-export-as-latex) (org-export-latex-first-lines): Avoid modification flag when adding or removing text properties. + (org-export-latex-fontify): Catch error when org-emph-alist has + entries that are not defined for LaTeX export. * org.el (orgstruct++-mode): New function. (turn-on-orgstruct++): Call `orgstruct++-mode'. diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index 51b4f57ce..f1cf37d9c 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -1213,6 +1213,9 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (beg (match-beginning 0)) (end (match-end 0)) rpl) + (unless emph + (message "`org-export-latex-emphasis-alist' has no entry for formatting triggered by \"%s\"" + (match-string 3))) (unless (or (get-text-property (1- (point)) 'org-protected) (save-excursion (goto-char (match-beginning 1))