org-element: Reach orphaned elements during cache sync
commitdf9ccbd11918c8e7273b98520f335573f512aa05
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 3 Jul 2014 20:10:47 +0000 (3 22:10 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 5 Jul 2014 08:54:09 +0000 (5 10:54 +0200)
tree43daad01a96b6e7f748027a0fb6d80aeb7767b90
parentf1433d82aea7c48a3482feb4ed2e33ffef47a074
org-element: Reach orphaned elements during cache sync

* lisp/org-element.el (org-element--cache-sync-requests): Change
  pattern.
(org-element--cache-sync, org-element--cache-submit-request): Update
request pattern.
(org-element--cache-process-request): Remove orphaned elements during
first phase.

An orphaned element is an element not directly altered by changes to
buffer but with one of its parent removed.
lisp/org-element.el