yatex
changeset 621:4718af8251ee
Calling flow of yatexadd changed
| author | HIROSE Yuuji <yuuji@gentei.org> |
|---|---|
| date | Sat, 01 Aug 2026 12:45:07 +0900 |
| parents | aa395d5e3bf8 |
| children | 8ad44217b2b0 |
| files | yatex.el |
| diffstat | 1 files changed, 18 insertions(+), 17 deletions(-) [+] |
line diff
1.1 --- a/yatex.el Thu Jul 23 22:55:51 2026 +0900 1.2 +++ b/yatex.el Sat Aug 01 12:45:07 2026 +0900 1.3 @@ -2753,23 +2753,6 @@ 1.4 ((YaTeX-change-math-image)) 1.5 (t (message "I don't know what to change.")))) 1.6 1.7 -;;; 1.8 -;Check availability of add-in functions 1.9 -;;; 1.10 -(cond 1.11 - ((featurep 'yatexadd) nil) ;Already provided. 1.12 - ((progn (load "yatexadd" t) (featurep 'yatexadd)) nil) 1.13 - (t (message "YaTeX add-in functions not supplied."))) 1.14 - 1.15 -(defun YaTeX-addin (name) 1.16 - "Check availability of addin function and call it if exists." 1.17 - (if (and (not (get 'YaTeX-generate 'disabled)) 1.18 - (intern-soft (concat YaTeX-addin-prefix name)) 1.19 - (fboundp (intern-soft (concat YaTeX-addin-prefix name)))) 1.20 - (let ((s (funcall (intern (concat YaTeX-addin-prefix name))))) 1.21 - (if (stringp s) s "")) 1.22 - "")) ;Add in function is not bound. 1.23 - 1.24 1.25 (defun YaTeX-on-item-p (&optional point) 1.26 "Return t if POINT (default is (point)) is on \\item." 1.27 @@ -3348,6 +3331,24 @@ 1.28 (set-buffer b)))) 1.29 1.30 (provide 'yatex) 1.31 +;;; 1.32 +;Check availability of add-in functions 1.33 +;;; 1.34 +(cond 1.35 + ((featurep 'yatexadd) nil) ;Already provided. 1.36 + ((progn (load "yatexadd" t) (featurep 'yatexadd)) nil) 1.37 + (t (message "YaTeX add-in functions not supplied."))) 1.38 + 1.39 +(defun YaTeX-addin (name) 1.40 + "Check availability of addin function and call it if exists." 1.41 + (if (and (not (get 'YaTeX-generate 'disabled)) 1.42 + (intern-soft (concat YaTeX-addin-prefix name)) 1.43 + (fboundp (intern-soft (concat YaTeX-addin-prefix name)))) 1.44 + (let ((s (funcall (intern (concat YaTeX-addin-prefix name))))) 1.45 + (if (stringp s) s "")) 1.46 + "")) ;Add in function is not bound. 1.47 + 1.48 + 1.49 (defvar yatex-mode-load-hook nil 1.50 "*List of functions to be called when yatex.el is loaded.") 1.51 (if (and YaTeX-emacs-19 YaTeX-display-color-p (not (featurep 'yatex19)))
