yatex
changeset 616:5f6698326eea dev
Add workaround of global-font-lock inactivity on Emacs30
| author | HIROSE Yuuji <yuuji@gentei.org> |
|---|---|
| date | Mon, 24 Feb 2025 19:33:52 +0900 |
| parents | f039d15cdba8 |
| children | b00018b5a0b4 |
| files | yatex.el |
| diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/yatex.el Sun Nov 24 21:04:11 2024 +0900 1.2 +++ b/yatex.el Mon Feb 24 19:33:52 2025 +0900 1.3 @@ -1,6 +1,6 @@ 1.4 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- 1.5 -;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org] 1.6 -;;; Last modified Sun Nov 24 20:47:36 2024 on firestorm 1.7 +;;; (c)1991-2025 by HIROSE Yuuji.[yuuji@yatex.org] 1.8 +;;; Last modified Mon Feb 24 19:01:20 2025 on firestorm 1.9 ;;; $Id$ 1.10 ;;; The latest version of this software is always available at; 1.11 ;;; https://www.yatex.org/ 1.12 @@ -16,7 +16,7 @@ 1.13 1.14 ;;; Code: 1.15 (require 'yatexlib) 1.16 -(defconst YaTeX-revision-number "1.83" 1.17 +(defconst YaTeX-revision-number "1.84" 1.18 "Revision number of running yatex.el") 1.19 1.20 ;---------- Local variables ---------- 1.21 @@ -785,7 +785,10 @@ 1.22 (or (featurep 'xemacs) 1.23 (set (make-local-variable 'font-lock-defaults) 1.24 (get 'yatex-mode 'font-lock-defaults))) 1.25 - ;;(font-lock-mode 1) 1.26 + (and (boundp 'global-font-lock-mode) 1.27 + global-font-lock-mode 1.28 + ;; Workaround for Emacs30 on which global-font-lock ignored 1.29 + (font-lock-mode 1)) 1.30 )) 1.31 (use-local-map YaTeX-mode-map) 1.32 (set-syntax-table YaTeX-mode-syntax-table)
