# HG changeset patch # User HIROSE Yuuji # Date 1740393232 -32400 # Node ID 5f6698326eea70ca4acd1c62524e44143452380a # Parent f039d15cdba834d6550fcf9fc7585b172e3b8200 Add workaround of global-font-lock inactivity on Emacs30 diff -r f039d15cdba8 -r 5f6698326eea yatex.el --- a/yatex.el Sun Nov 24 21:04:11 2024 +0900 +++ b/yatex.el Mon Feb 24 19:33:52 2025 +0900 @@ -1,6 +1,6 @@ ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- -;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Sun Nov 24 20:47:36 2024 on firestorm +;;; (c)1991-2025 by HIROSE Yuuji.[yuuji@yatex.org] +;;; Last modified Mon Feb 24 19:01:20 2025 on firestorm ;;; $Id$ ;;; The latest version of this software is always available at; ;;; https://www.yatex.org/ @@ -16,7 +16,7 @@ ;;; Code: (require 'yatexlib) -(defconst YaTeX-revision-number "1.83" +(defconst YaTeX-revision-number "1.84" "Revision number of running yatex.el") ;---------- Local variables ---------- @@ -785,7 +785,10 @@ (or (featurep 'xemacs) (set (make-local-variable 'font-lock-defaults) (get 'yatex-mode 'font-lock-defaults))) - ;;(font-lock-mode 1) + (and (boundp 'global-font-lock-mode) + global-font-lock-mode + ;; Workaround for Emacs30 on which global-font-lock ignored + (font-lock-mode 1)) )) (use-local-map YaTeX-mode-map) (set-syntax-table YaTeX-mode-syntax-table)