瀏覽代碼

LaTeX Export: Better error message for emphasis alist conflicts

Carsten Dominik 16 年之前
父節點
當前提交
2512bc972d
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 2 0
      lisp/ChangeLog
  2. 3 0
      lisp/org-export-latex.el

+ 2 - 0
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'.

+ 3 - 0
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))