From eaa7817b31745c56d13a3f55aed2c4b2596cf133 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 5 Dec 2021 19:04:34 +0100 Subject: [PATCH] org: Try loading activate processor when initializing fontification * lisp/org.el (org-set-font-lock-defaults): Try registering activate processor if appropriate. --- lisp/org.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index ec59ddf44..e87b28319 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5786,8 +5786,12 @@ needs to be inserted at a specific position in the font-lock sequence.") ;; Blocks and meta lines '(org-fontify-meta-lines-and-blocks) '(org-fontify-inline-src-blocks) - ;; Citations - '(org-cite-activate)))) + ;; Citations. When an activate processor is specified, if + ;; specified, try loading it beforehand. + (progn + (unless (null org-cite-activate-processor) + (org-cite-try-load-processor org-cite-activate-processor)) + '(org-cite-activate))))) (setq org-font-lock-extra-keywords (delq nil org-font-lock-extra-keywords)) (run-hooks 'org-font-lock-set-keywords-hook) ;; Now set the full font-lock-keywords