org-element: Fix commit 73d60606bd

* lisp/org-element.el (org-element--cache-sync): Fix commit
  73d60606bd.
This commit is contained in:
Nicolas Goaziou 2013-11-16 00:33:30 +01:00
parent 38a2bd3783
commit 4466af5c11
1 changed files with 2 additions and 1 deletions

View File

@ -5048,7 +5048,8 @@ removed from the cache."
(let ((parent (org-element-property :parent element)))
(when (and parent (eq (org-element-type parent) 'item))
(setq parent (org-element-property :parent parent)))
(when (and parent
(when (and (memq (org-element-type parent)
'(footnote-definition plain-list))
(>= (org-element-property :end parent) beg)
(= (org-element-property :contents-end parent)
(org-element-property :end element)))