branch: externals/org-modern commit e3ed5009e5b3ea4336334fb9bb7c54cbd9dfb157 Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>
timer function: ensure correct directory --- org-modern-indent.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org-modern-indent.el b/org-modern-indent.el index 5aa0200529..847c4f48bb 100644 --- a/org-modern-indent.el +++ b/org-modern-indent.el @@ -160,8 +160,9 @@ of the returned vector. If PREFIX is nil or empty, nil is returned." (if (or (not (bound-and-true-p org-indent-agentized-buffers)) (not (memq buf org-indent-agentized-buffers))) (progn - (font-lock-add-keywords nil org-modern-indent--font-lock-keywords t) - (font-lock-flush)) + (with-current-buffer buf + (font-lock-add-keywords nil org-modern-indent--font-lock-keywords t) + (font-lock-flush))) (run-at-time 0.1 nil #'org-modern-indent--wait-and-refresh buf))) (defun org-modern-indent--refresh ()