LaTeX Export: Better error message for emphasis alist conflicts

This commit is contained in:
Carsten Dominik 2009-02-22 20:51:19 +01:00
parent a93c5d2e2e
commit 2512bc972d
2 changed files with 5 additions and 0 deletions

View File

@ -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'.

View File

@ -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))