org-element: Sync cache after changes instead of before them
commitb2f200f0a1e259547927ea46dc16b4ed693b9a3b
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 17 Jun 2014 21:36:29 +0000 (17 23:36 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 19 Jun 2014 20:32:22 +0000 (19 22:32 +0200)
treeae2be7c697f190df4b33423d2c6e86d7b1185d7c
parent87dbce239d067244c9586b9cdda08bbb57814acf
org-element: Sync cache after changes instead of before them

* lisp/org-element.el (org-element--cache-sync,
  org-element--cache-process-request): Change signature.
(org-element--cache-before-change): Do not synchronize cache
preemptively.
(org-element--cache-submit-request): Synchronize cache preemptively.

This change makes possible to skip cache preemptive synchronization
under some circumstances.
lisp/org-element.el