# HG changeset patch # User HIROSE Yuuji # Date 1785555907 -32400 # Node ID 4718af8251ee09079dc13101283bce93304fb3c4 # Parent aa395d5e3bf83acff269af366beeddba1d0eee93 Calling flow of yatexadd changed diff -r aa395d5e3bf8 -r 4718af8251ee yatex.el --- a/yatex.el Thu Jul 23 22:55:51 2026 +0900 +++ b/yatex.el Sat Aug 01 12:45:07 2026 +0900 @@ -2753,23 +2753,6 @@ ((YaTeX-change-math-image)) (t (message "I don't know what to change.")))) -;;; -;Check availability of add-in functions -;;; -(cond - ((featurep 'yatexadd) nil) ;Already provided. - ((progn (load "yatexadd" t) (featurep 'yatexadd)) nil) - (t (message "YaTeX add-in functions not supplied."))) - -(defun YaTeX-addin (name) - "Check availability of addin function and call it if exists." - (if (and (not (get 'YaTeX-generate 'disabled)) - (intern-soft (concat YaTeX-addin-prefix name)) - (fboundp (intern-soft (concat YaTeX-addin-prefix name)))) - (let ((s (funcall (intern (concat YaTeX-addin-prefix name))))) - (if (stringp s) s "")) - "")) ;Add in function is not bound. - (defun YaTeX-on-item-p (&optional point) "Return t if POINT (default is (point)) is on \\item." @@ -3348,6 +3331,24 @@ (set-buffer b)))) (provide 'yatex) +;;; +;Check availability of add-in functions +;;; +(cond + ((featurep 'yatexadd) nil) ;Already provided. + ((progn (load "yatexadd" t) (featurep 'yatexadd)) nil) + (t (message "YaTeX add-in functions not supplied."))) + +(defun YaTeX-addin (name) + "Check availability of addin function and call it if exists." + (if (and (not (get 'YaTeX-generate 'disabled)) + (intern-soft (concat YaTeX-addin-prefix name)) + (fboundp (intern-soft (concat YaTeX-addin-prefix name)))) + (let ((s (funcall (intern (concat YaTeX-addin-prefix name))))) + (if (stringp s) s "")) + "")) ;Add in function is not bound. + + (defvar yatex-mode-load-hook nil "*List of functions to be called when yatex.el is loaded.") (if (and YaTeX-emacs-19 YaTeX-display-color-p (not (featurep 'yatex19)))