[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org eaa7817 3/4: org: Try loading activate processor wh
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org eaa7817 3/4: org: Try loading activate processor when initializing fontification |
Date: |
Sun, 5 Dec 2021 13:57:32 -0500 (EST) |
branch: externals/org
commit eaa7817b31745c56d13a3f55aed2c4b2596cf133
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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 ec59ddf..e87b283 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