branch: externals/po-mode
commit e70aab72a6331bd55f69893fa152be80c44d1bf6
Author: Bruno Haible <[email protected]>
Commit: Bruno Haible <[email protected]>

    po-mode: Fix incompatibility with the forthcoming Emacs 29.
    
    Patch by Takesi Ayanokoji <[email protected]>.
    
    * gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Use
    font-lock-constant-face, introduced in Emacs 20.3, instead of the
    long-deprecated font-lock-reference-face.
    * NEWS: Mention it.
---
 po-mode.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/po-mode.el b/po-mode.el
index e04428772c..fedc70fd39 100644
--- a/po-mode.el
+++ b/po-mode.el
@@ -1,7 +1,6 @@
 ;;; po-mode.el --- major mode for GNU gettext PO files
 
-;; Copyright (C) 1995-2002, 2005-2008, 2010, 2013-2017, 2019-2020 Free Software
-;; Foundation, Inc.
+;; Copyright (C) 1995-2002, 2005-2008, 2010, 2013-2017, 2019-2020, 2023 Free 
Software Foundation, Inc.
 
 ;; Authors: François Pinard <[email protected]>
 ;;          Greg McGary <[email protected]>
@@ -909,7 +908,7 @@ M-S  Ignore path          M-A  Ignore PO file      *M-L  
Ignore lexicon
 (defconst po-font-lock-keywords
   '(
     ("^# .*\\|^#[:,]?" . font-lock-comment-face)
-    ("^#:\\(.*\\)" 1 font-lock-reference-face)
+    ("^#:\\(.*\\)" 1 font-lock-constant-face)
     ("^#,\\(.*\\)" 1 font-lock-function-name-face)
     ("^\\(\\(msg\\(ctxt\\|id\\(_plural\\)?\\|str\\(\\[[0-9]\\]\\)?\\)\\) 
\\)?\"\\|\"$"
      . font-lock-keyword-face)

Reply via email to