org-element: Do not consider property drawers as robusts

* lisp/org-element.el (org-element--cache-for-removal): Do not
  consider property drawers as robusts: if contents are modified,
  remove the whole drawer from cache.
This commit is contained in:
Nicolas Goaziou 2014-09-02 21:18:40 +02:00
parent d4e4b1ea68
commit 38d0eb64b0
1 changed files with 1 additions and 2 deletions

View File

@ -5442,8 +5442,7 @@ changes."
(while up (while up
(if (and (memq (org-element-type up) (if (and (memq (org-element-type up)
'(center-block drawer dynamic-block '(center-block drawer dynamic-block
property-drawer quote-block quote-block special-block))
special-block))
(<= (org-element-property :contents-begin up) beg) (<= (org-element-property :contents-begin up) beg)
(> (org-element-property :contents-end up) end)) (> (org-element-property :contents-end up) end))
;; UP is a robust greater element containing changes. ;; UP is a robust greater element containing changes.