소스 검색

org-element: Small cache fix

* lisp/org-element.el (org-element--cache-before-change): Ignore case
  sensitivity when looking for a modified sensitive line.
Nicolas Goaziou 10 년 전
부모
커밋
e46c62d96f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lisp/org-element.el

+ 2 - 1
lisp/org-element.el

@@ -5434,7 +5434,8 @@ text.  See `before-change-functions' for more information."
 	      (concat
 	       "\\(" (org-with-limited-levels org-outline-regexp-bol) "\\)" "\\|"
 	       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
 	       (cond ((not (re-search-forward sensitive-re bottom t)) nil)
 		     ((and (match-beginning 1)