From e9aab93b7a13328fce6d26f9df74b92eaa8ff32c Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 21 Dec 2008 10:03:15 +0000 Subject: [PATCH] 2008-12-21 Carsten Dominik * org-export-latex.el (org-export-latex-special-chars): Handle case where there is no match group 3. --- lisp/org/ChangeLog | 2 ++ lisp/org/org-export-latex.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index e4277f8110d..d46d2da6f7a 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog @@ -2,6 +2,8 @@ * org-export-latex.el (org-export-latex-make-header): Double the commenting % in the time stamp format. + (org-export-latex-special-chars): Handle case where there is no + match group 3. 2008-12-20 Carsten Dominik diff --git a/lisp/org/org-export-latex.el b/lisp/org/org-export-latex.el index 2d816529da8..78a5f9d1859 100644 --- a/lisp/org/org-export-latex.el +++ b/lisp/org/org-export-latex.el @@ -913,7 +913,8 @@ See the `org-export-latex.el' code for a complete conversion table." (replace-match (or (save-match-data (org-export-latex-treat-backslash-char (match-string 1) - (match-string 3))) "") t t)) + (or (match-string 3) ""))) + "") t t)) ((member (match-string 2) '("_" "^")) (replace-match (or (save-match-data (org-export-latex-treat-sub-super-char -- 2.39.2