2009-02-06 Carsten Dominik <dominik@science.uva.nl>
authorCarsten Dominik <dominik@science.uva.nl>
Fri, 6 Feb 2009 09:42:13 +0000 (09:42 +0000)
committerCarsten Dominik <dominik@science.uva.nl>
Fri, 6 Feb 2009 09:42:13 +0000 (09:42 +0000)
* org.el (org-format-latex): Stop LaTeX fragment processing in
protected examples.

lisp/org/ChangeLog
lisp/org/org.el

index a77f359..da098fd 100644 (file)
@@ -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.
index e98750b..e34c818 100644 (file)
@@ -12709,7 +12709,9 @@ The images can be removed again with \\[org-ctrl-c-ctrl-c]."
       (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)