From 789ddf155af9744c3ab6758397f0561e149a5da9 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 5 Apr 2015 21:38:10 +0200 Subject: [PATCH] org-element: Fix regexp * lisp/org-element.el (org-element--cache-sensitive-re): Fix regexp. --- lisp/org-element.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index c0cf979ea..eaf5b8cb1 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -5360,12 +5360,10 @@ the process stopped before finding the expected result." (defconst org-element--cache-sensitive-re (concat org-outline-regexp-bol "\\|" + "\\\\end{[A-Za-z0-9*]+}[ \t]*$" "\\|" "^[ \t]*\\(?:" - ;; Blocks "#\\+\\(?:BEGIN[:_]\\|END\\(?:_\\|:?[ \t]*$\\)\\)" "\\|" - ;; LaTeX environments. - "\\\\\\(?:begin{[A-Za-z0-9*]+}\\|end{[A-Za-z0-9*]+}[ \t]*$\\)" "\\|" - ;; Drawers. + "\\\\begin{[A-Za-z0-9*]+}" "\\|" ":\\(?:\\w\\|[-_]\\)+:[ \t]*$" "\\)") "Regexp matching a sensitive line, structure wise. -- 2.11.4.GIT