mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
ox.el: Support cache during export
* lisp/ox.el (org-export-ignored-local-variables): Preserve cache state in export buffer. (org-export--generate-copy-script): Fix cache confusion about buffer change tic.
This commit is contained in:
parent
fede2588e4
commit
fe6cefdaaf
|
@ -260,6 +260,8 @@ rules.")
|
|||
|
||||
(defconst org-export-ignored-local-variables
|
||||
'(org-font-lock-keywords
|
||||
org-element--cache-change-tic org-element--cache-change-tic org-element--cache-size
|
||||
org-element--cache-sync-keys-value org-element--cache-change-warning
|
||||
org-element--cache org-element--cache-objects org-element--cache-sync-keys
|
||||
org-element--cache-sync-requests org-element--cache-sync-timer)
|
||||
"List of variables not copied through upon buffer duplication.
|
||||
|
@ -2614,6 +2616,9 @@ The function assumes BUFFER's major mode is `org-mode'."
|
|||
(set (make-local-variable var) val))
|
||||
;; Whole buffer contents.
|
||||
(insert str)
|
||||
;; Make org-element-cache not complain about changed buffer
|
||||
;; state.
|
||||
(org-element-cache-reset)
|
||||
;; Narrowing.
|
||||
(apply #'narrow-to-region narrowing)
|
||||
;; Current position of point.
|
||||
|
|
Loading…
Reference in a new issue