branch: externals/org commit df0539d678a9b3519a1952a1f45e941a034ef30a Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
* lisp/org.el (org-cdlatex-mode): Try to load texmathp Attempt to load texmathp before setting advice. `texmathp' is optional and must be loaded before `cdlatex'. --- lisp/org.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 006f3688bb..6b68851dd9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15553,6 +15553,10 @@ in Org mode. \\{org-cdlatex-mode-map}" :lighter " OCDL" (when org-cdlatex-mode + ;; Try to load texmathp before cdlatex. Otherwise, cdlatex can + ;; bind `cdlatex--texmathp' to `ignore', not using `texmathp' at + ;; all. + (org-require-package 'texmathp "Auctex") (org-require-package 'cdlatex) (run-hooks 'cdlatex-mode-hook) (cdlatex-compute-tables))