branch: externals/po-mode
commit 6a7a423648fcc35c114d4bbc1589ddac1a27cd31
Author: Bruno Haible <[email protected]>
Commit: Bruno Haible <[email protected]>
po-mode: Avoid a compiler warning in Emacs 28.
Reported by Vincent Lefèvre <[email protected]> via Santiago Vila
at <https://lists.gnu.org/archive/html/bug-gettext/2024-06/msg00031.html>.
* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump version.
(po-mode): Use write-contents-functions instead of write-contents-hooks.
---
po-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/po-mode.el b/po-mode.el
index 6416037c5e..cad2bdac72 100644
--- a/po-mode.el
+++ b/po-mode.el
@@ -1,6 +1,6 @@
;;; po-mode.el --- major mode for GNU gettext PO files
-;; Copyright (C) 1995-2002, 2005-2008, 2010, 2013-2017, 2019-2020, 2023 Free
Software Foundation, Inc.
+;; Copyright (C) 1995-2024 Free Software Foundation, Inc.
;; Authors: François Pinard <[email protected]>
;; Greg McGary <[email protected]>
@@ -62,7 +62,7 @@
;;; Code:
-(defconst po-mode-version-string "2.29" "\
+(defconst po-mode-version-string "2.30" "\
Version number of this version of po-mode.el.")
;;; Emacs portability matters - part I.
@@ -1000,7 +1000,7 @@ all reachable through 'M-x customize', in group
'Emacs.Editing.I18n.Po'."
(set (make-local-variable 'po-string-end) nil)
(set (make-local-variable 'po-marking-overlay) (po-create-overlay))
- (add-hook 'write-contents-hooks 'po-replace-revision-date)
+ (add-hook 'write-contents-functions 'po-replace-revision-date)
(run-hooks 'po-mode-hook)
(message (_"You may type 'h' or '?' for a short PO mode reminder.")))