Closed akashpal-21 closed 3 months ago
@akashpal-21 Thank you. Merged the patch to the main, which will be sync'ed with ELPA-devel in the next cycle. Let's keep it there for now to see if there is any regression that we have missed so far.
Closing this issue - please reopen it if any regressions surface 🙂 . Thank you.
When org-remark-mode is active - there is a delay load mechanism for the highlights - this delay load is achieved via utilising
window-state-change-functions
-If buffer in question is opened directly instead of using find-file -- during new client frame creation - this leaks to ALL open buffers if the mode is activated by using local evaluation. such as
This is problematic since then it will try to load highlights for all buffers whether org-remark-mode is active or not in them. Normally this opens the
notes.org
file for each buffer concerned due to the logic insideorg-remark-highlights-load
-- since(org-remark-notes-get-file-name)
is called inside the code -- this creates the notes-buffer for the buffers automatically.One solution to make the delay load more robust is to use a local post-command-hook -- during tests - this doesn't leak while still giving the same benefits
I show an example how to use this within the existing code.
Best,