From 85df69a5c01f295a901e959fa3bf58af1140e1db Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 3 Mar 2010 13:26:24 +0100 Subject: [PATCH] LaTeX export: Protect examples, even if they look like table.el tables The recent patch to introduce table.el export in LaTeX forgot to check protectedness. --- lisp/ChangeLog | 2 ++ lisp/org-latex.el | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c356f6f4c..ecb75cdf5 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,8 @@ * org-latex.el (org-export-latex-special-chars): Find subsequent occurrences of special characters. + (org-export-latex-tables): Do not convert table-like stuff that is + protected. 2010-03-01 Carsten Dominik diff --git a/lisp/org-latex.el b/lisp/org-latex.el index f663fa425..ec243c269 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1541,8 +1541,9 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." ;; First, get the table.el tables (goto-char (point-min)) (while (re-search-forward "^[ \t]*\\(\\+-[-+]*\\+\\)[ \t]*\n[ \t]*|" nil t) - (require 'table) - (org-export-latex-convert-table.el-table)) + (org-if-unprotected + (require 'table) + (org-export-latex-convert-table.el-table))) ;; And now the Org-mode tables (goto-char (point-min))