branch: externals/org commit 6339c622f8cb7621161454e7efd8411514fc762a Author: Ihor Radchenko <yanta...@gmail.com> Commit: Ihor Radchenko <yanta...@gmail.com>
org-element-cache: Do not consider BEGIN lines of elements sensitive * lisp/org-element.el (org-element--cache-sensitive-re): Remove #+begin_ and \begin{ lines from sensitive regexp. Such changes can be handled without a need to re-parse from earlier position. If a change introduces a new element, the new element will be recognised and the unupdated elements not intersecting with the new element will be handled during Phase 1. --- lisp/org-element.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index b1edb6c..30721fe 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -6491,10 +6491,9 @@ If you observe Emacs hangs frequently, please report this to Org mode mailing li "^\\*+ " "\\|" "\\\\end{[A-Za-z0-9*]+}[ \t]*$" "\\|" "^[ \t]*\\(?:" - "#\\+\\(?:BEGIN[:_]\\|END\\(?:_\\|:?[ \t]*$\\)\\)" "\\|" + "#\\+END\\(?:_\\|:?[ \t]*$\\)" "\\|" org-list-full-item-re "\\|" ":\\(?: \\|$\\)" "\\|" - "\\\\begin{[A-Za-z0-9*]+}" "\\|" ":\\(?:\\w\\|[-_]\\)+:[ \t]*$" "\\)") "Regexp matching a sensitive line, structure wise.