From 0b91aef0f38dfda986d5dbcc004c9c52a12693fd Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 6 Feb 2009 09:42:13 +0000 Subject: [PATCH] 2009-02-06 Carsten Dominik * org.el (org-format-latex): Stop LaTeX fragment processing in protected examples. --- lisp/org/ChangeLog | 5 +++++ lisp/org/org.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index a77f359e29a..da098fdba1f 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog @@ -1,3 +1,8 @@ +2009-02-06 Carsten Dominik + + * org.el (org-format-latex): Stop LaTeX fragment processing in + protected examples. + 2009-02-05 Glenn Morris * org-rmail.el (rmail-show-message): Update declaration. diff --git a/lisp/org/org.el b/lisp/org/org.el index e98750b48e7..e34c8188a7a 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -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) -- 2.39.5