org-element: Small cache fix

* lisp/org-element.el (org-element--cache-before-change): Ignore case
  sensitivity when looking for a modified sensitive line.
This commit is contained in:
Nicolas Goaziou 2014-06-25 23:51:04 +02:00
parent 5ab53d101d
commit e46c62d96f
1 changed files with 2 additions and 1 deletions

View File

@ -5434,7 +5434,8 @@ text. See `before-change-functions' for more information."
(concat (concat
"\\(" (org-with-limited-levels org-outline-regexp-bol) "\\)" "\\|" "\\(" (org-with-limited-levels org-outline-regexp-bol) "\\)" "\\|"
org-element--cache-closing-line "\\|" org-element--cache-closing-line "\\|"
org-element--cache-opening-line))) org-element--cache-opening-line))
(case-fold-search t))
(setq org-element--cache-change-warning (setq org-element--cache-change-warning
(cond ((not (re-search-forward sensitive-re bottom t)) nil) (cond ((not (re-search-forward sensitive-re bottom t)) nil)
((and (match-beginning 1) ((and (match-beginning 1)