Karthik Chikmagalur <karthikchikmaga...@gmail.com> writes: >> I mostly meant calling preview-func asynchronously, while idle, spaced >> out, spending not longer than a fraction of second to call several >> preview-funcs. >> Spacing might then be controlled by the users. > ... > Do you mean something like this? > > (while (re-search-forward org-link-any-re end t) > ;; Make overlay ov here > ;; Find path, link and preview-func here > > (push (list ov preview-func path link) previews-remaining)) > > (dolist (preview-data-chunk (seq-partition previews-remaining 6)) > (run-with-idle-timer > ... > Where the chunk size (6) and the idle time (0.10 seconds) will be > customizable.
Yes. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>