yatex
diff yatexlib.el @ 627:f294195d0d3f
Add details add-in, which fills <summary>.
| author | HIROSE Yuuji <yuuji@gentei.org> |
|---|---|
| date | Tue, 11 Aug 2026 20:43:46 +0900 |
| parents | 38a414d755c1 |
| children |
line diff
1.1 --- a/yatexlib.el Fri Dec 02 08:42:22 2022 +0859 1.2 +++ b/yatexlib.el Tue Aug 11 20:43:46 2026 +0900 1.3 @@ -1,7 +1,7 @@ 1.4 -;;; yatexlib.el --- YaTeX and yahtml common libraries -*- coding: sjis -*- 1.5 +;;; yatexlib.el --- YaTeX and yahtml common libraries -*- coding: sjis; lexical-binding: nil -*- 1.6 ;;; 1.7 -;;; (c)1994-2022 by HIROSE Yuuji.[yuuji@yatex.org] 1.8 -;;; Last modified Fri Dec 2 08:41:16 2022 on firestorm 1.9 +;;; (c)1994-2026 by HIROSE Yuuji.[yuuji@yatex.org] 1.10 +;;; Last modified Sat Aug 1 13:14:19 2026 on firestorm 1.11 ;;; $Id$ 1.12 1.13 ;;; Code: 1.14 @@ -90,7 +90,7 @@ 1.15 (defvar YaTeX-use-italic-bold (string< "20" emacs-version) 1.16 "*Non-nil tries to find italic/bold fontset. 1.17 This variable is effective when font-lock is used. 1.18 -\it, \bf 内部での日本語が□になってしまう場合はこれをnilにして下さい。") 1.19 +\\it, \\bf 内部での日本語が□になってしまう場合はこれをnilにして下さい。") 1.20 1.21 ;----------- work variables ---------------------------------------- 1.22 (defvar YaTeX-minibuffer-completion-map nil 1.23 @@ -207,7 +207,8 @@ 1.24 (interactive) 1.25 (let*((user-table (expand-file-name YaTeX-user-completion-table)) 1.26 (local-table (expand-file-name (file-name-nondirectory user-table))) 1.27 - var localvar localbuf (curbuf (current-buffer)) sexp) 1.28 + var localvar localbuf (curbuf (current-buffer)) sexp 1.29 + (warning-suppress-log-types '((files missing-lexbind-cookie)))) 1.30 (if YaTeX-user-table-is-read nil 1.31 (message "Loading user completion table") 1.32 (if (file-exists-p user-table) (load-file user-table) 1.33 @@ -891,7 +892,7 @@ 1.34 1.35 (defun YaTeX-split-string (str &optional sep null) 1.36 "Split string STR by every occurrence of SEP(regexp). 1.37 -If the optional second argument SEP is nil, it defaults to \"[ \f\t\n\r\v]+\". 1.38 +If the optional second argument SEP is nil, it defaults to \"[ \\f\\t\\n\\r\\v]+\". 1.39 Do not include null string by default. Non-nil for optional third argument 1.40 NULL includes null string in a list." 1.41 (let ((sep (or sep "[ \f\t\n\r\v]+")) 1.42 @@ -929,6 +930,14 @@ 1.43 (fset 'YaTeX-member (symbol-function 'member)) 1.44 (fset 'YaTeX-member (symbol-function 'YaTeX-member1))) 1.45 1.46 +;;; interactive-p 1.47 +(if (fboundp 'called-interactively-p) 1.48 + (defun YaTeX-interactive-p() 1.49 + (called-interactively-p 'interactive)) 1.50 + (fset 'YaTeX-interactive-p 'interactive-p)) 1.51 +(fset 'YaTeX-eval-buffer 1.52 + (if (fboundp 'eval-current-buffer) 'eval-current-buffer 'eval-buffer)) 1.53 + 1.54 ;;; 1.55 ;; Interface function for windows.el 1.56 ;;; 1.57 @@ -1105,7 +1114,7 @@ 1.58 (defun YaTeX-goto-corresponding-environment (&optional allow-mismatch noerr bg) 1.59 "Go to corresponding begin/end enclosure. 1.60 Optional argument ALLOW-MISMATCH allows mismatch open/clese. Use this 1.61 -for \left(, \right). 1.62 +for \\left(, \\right). 1.63 Optional third argument NOERR causes no error for unballanced environment." 1.64 (interactive) 1.65 (if (not (YaTeX-on-begin-end-p)) nil 1.66 @@ -1220,7 +1229,7 @@ 1.67 (progn 1.68 (goto-char (get 'YaTeX-inner-environment 'point)) 1.69 (and end (YaTeX-goto-corresponding-environment)) 1.70 - (if (interactive-p) (push-mark op)) 1.71 + (if (YaTeX-interactive-p) (push-mark op)) 1.72 (point))))) 1.73 1.74 (defun YaTeX-end-of-environment (&optional limit-search-bound)
