Browse Source

org-element: Fix commit 73d60606bd397e2d4a1eb19c624bec4af8c2fa0c

* lisp/org-element.el (org-element--cache-sync): Fix commit
  73d60606bd397e2d4a1eb19c624bec4af8c2fa0c.
Nicolas Goaziou 11 years ago
parent
commit
4466af5c11
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-element.el

+ 2 - 1
lisp/org-element.el

@@ -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)))