org-element: Small fix
commit815c218f22b48d02587b670c8a9c25e87fc420f0
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 29 Jun 2014 15:05:30 +0000 (29 17:05 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 29 Jun 2014 15:17:23 +0000 (29 17:17 +0200)
treefdd3a74b5d8d1b1d22a4c22ec777e87bc6db2f35
parentf12f9543fc4b59121dfd3ef0087aef333b141c18
org-element: Small fix

* lisp/org-element.el (org-element--cache-submit-request): Fix off by
  one error when updating cache.  Changes happening at the beginning
  to the previous ones, which are always located at the beginning of
  an element, imply to delete previous element.  Also do not call
  `org-element--cache-sync' if there's nothing to synchronize.
lisp/org-element.el