org-element: Do not trust a stored request after cache sync

* lisp/org-element.el (org-element--cache-submit-request): Do not
  trust a stored request after calling `org-element--cache-sync' since
  it may as well not exist anymore (i.e., the synchronization was
  complete).
This commit is contained in:
Nicolas Goaziou 2014-06-30 15:34:40 +02:00
parent 81bfa7a05b
commit ba9c43fc81
1 changed files with 2 additions and 1 deletions

View File

@ -5548,7 +5548,8 @@ change, as an integer."
org-element--cache-sync-requests)) org-element--cache-sync-requests))
;; No element to remove. No need to re-parent either. ;; No element to remove. No need to re-parent either.
;; Simply shift additional elements, if any, by OFFSET. ;; Simply shift additional elements, if any, by OFFSET.
(next (incf (aref next 3) offset))))))) (org-element--cache-sync-requests
(incf (aref (car org-element--cache-sync-requests) 3) offset)))))))
;;;; Public Functions ;;;; Public Functions