]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Restore syntax highlighting in Emacs 30 or newer. 0.25.x
authorBruno Haible <bruno@clisp.org>
Thu, 2 Oct 2025 20:50:11 +0000 (22:50 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Nov 2025 14:26:21 +0000 (15:26 +0100)
Reported by Sab Pyrope <sab.pyrope@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-03/msg00017.html>
and by Julien Palard <julien@palard.fr> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-10/msg00000.html>.

It's a regression in Emacs 30, in commit
17e26cf57e18c5df2172a7049591d89fc53b3fb6 .

* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump to 2.31.
(po-mode): Invoke run-mode-hooks instead of run-hooks.
* NEWS: Mention the fix.

NEWS
gettext-tools/emacs/po-mode.el

diff --git a/NEWS b/NEWS
index c380b3b51dcbf665b367cbe17cb48c7dcd6efbe6..e6ece504244fa06a1319c80b33f331a5eeb6a67f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Version 0.25.2
+
+* Emacs PO mode:
+  Restore syntax highlighting in Emacs version 30 or newer.
+
 Version 0.25.1 - July 2025
 
 * Bug fixes:
index cad2bdac7226e52a2bec7f60931ef4ae5c554515..f7f775c93ace63a8babf89ddefc83b9aa59fd5e3 100644 (file)
@@ -62,7 +62,7 @@
 
 ;;; Code:
 \f
-(defconst po-mode-version-string "2.30" "\
+(defconst po-mode-version-string "2.31" "\
 Version number of this version of po-mode.el.")
 
 ;;; Emacs portability matters - part I.
@@ -1002,7 +1002,7 @@ all reachable through 'M-x customize', in group 'Emacs.Editing.I18n.Po'."
 
   (add-hook 'write-contents-functions 'po-replace-revision-date)
 
-  (run-hooks 'po-mode-hook)
+  (run-mode-hooks 'po-mode-hook)
   (message (_"You may type 'h' or '?' for a short PO mode reminder.")))
 
 (defvar po-subedit-mode-map