changeset 101831:20072969284d

2009-02-06 Carsten Dominik <dominik@science.uva.nl> * org.el (org-format-latex): Stop LaTeX fragment processing in protected examples.
author Carsten Dominik <dominik@science.uva.nl>
date Fri, 06 Feb 2009 09:42:13 +0000
parents 6babeadc07c9
children aa61f808aca4
files lisp/org/ChangeLog lisp/org/org.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/org/ChangeLog	Fri Feb 06 07:33:20 2009 +0000
+++ b/lisp/org/ChangeLog	Fri Feb 06 09:42:13 2009 +0000
@@ -1,3 +1,8 @@
+2009-02-06  Carsten Dominik  <dominik@science.uva.nl>
+
+	* org.el (org-format-latex): Stop LaTeX fragment processing in
+	protected examples.
+
 2009-02-05  Glenn Morris  <rgm@gnu.org>
 
 	* org-rmail.el (rmail-show-message): Update declaration.
--- a/lisp/org/org.el	Fri Feb 06 07:33:20 2009 +0000
+++ b/lisp/org/org.el	Fri Feb 06 09:42:13 2009 +0000
@@ -12709,7 +12709,9 @@
       (when (member m matchers)
 	(goto-char (point-min))
 	(while (re-search-forward re nil t)
-	  (when (or (not at) (equal (cdr at) (match-beginning n)))
+	  (when (and (or (not at) (equal (cdr at) (match-beginning n)))
+		     (not (get-text-property (match-beginning n)
+					     'org-protected)))
 	    (setq txt (match-string n)
 		  beg (match-beginning n) end (match-end n)
 		  cnt (1+ cnt)