0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-04 03:43:01 +00:00
org-mode/testing/lisp
Nicolas Goaziou eed0500913 org-element: Implement lazy cache synchronization
* lisp/org-element.el (org-element-cache-sync-idle-time): Change
  default value.
(org-element-cache-sync-duration, org-element-cache-sync-break,
org-element--cache-sync-requests, org-element--cache-sync-timer,
org-element--cache-sync-keys, org-element--cache-default-key,
org-element--cache-change-warning): New variables.
(org-element-cache-merge-changes-threshold,
org-element--cache-status): Removed variables.
(org-element--cache-key, org-element--cache-generate-key,
org-element--cache-key-less-p, org-element--cache-find,
org-element--cache-set-timer, org-element--cache-process-request,
org-element--cache-submit-request, org-element--parse-to,
org-element--cache-interrupt-p, org-element--cache-put,
org-element--cache-active-p): New functions.
(org-element--cache-compare): Adapt to new keys in AVL tree.
(org-element--cache-pending-changes-p,
org-element--cache-cancel-changes, org-element--cache-mapc,
org-element-cache-get, org-element-cache-put): Removed functions.
(org-element--cache-before-change): Use new variables.
(org-element--cache-after-change): Renamed from
`org-element--cache-record-change'.
(org-element-cache-get): Change signature.
(org-element-cache-put): Rewrite function.  Use new tools.
(org-element-cache-reset): Adapt to new variables.
(org-element--cache-sync): Rewrite function.

* lisp/ox.el (org-export--generate-copy-script): Do not copy through
  new cache-related variables.
(org-export-ignored-local-variables): New variable.

* testing/lisp/test-org-element.el (test-org-element/cache): New test.

Now only the part of the cache that needs to be accessed is updated
synchronously.  Otherwise, it happens on idle time.
2014-02-20 22:18:17 +01:00
..
test-ob-awk.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-C.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-emacs-lisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-exp.el ob-exp: Do not ignore `org-src-preserve-indentation' 2014-02-01 21:52:43 +01:00
test-ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-header-arg-defaults.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-lilypond.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-lob.el named and caching call lines working 2014-01-18 13:40:57 -07:00
test-ob-maxima.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-octave.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-python.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-R.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-ruby.el ob-ruby.el: fix result of :results output :session combination. 2013-10-21 13:09:28 -06:00
test-ob-shell.el Renaming of ob-sh to ob-shell: various fixes 2014-02-02 00:08:56 -07:00
test-ob-table.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-tangle.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob.el Merge branch 'maint' 2014-01-07 14:19:03 +01:00
test-org-clock.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-element.el org-element: Implement lazy cache synchronization 2014-02-20 22:18:17 +01:00
test-org-footnote.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-list.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-macro.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-open-at-point.el Test the org-open-at-point function. 2013-03-16 20:27:00 +01:00
test-org-src.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-table.el Simplify ERT for TBLFM with sub-total 2014-02-20 08:51:19 +01:00
test-org.el Fix escaping of more links in HTML export 2014-02-19 20:49:21 +01:00
test-ox.el Merge branch 'maint' 2014-01-07 14:19:03 +01:00
test-property-inheritance.el Update copyright years again. 2014-01-07 14:18:17 +01:00