emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ec2dfd110c: cc-fonts.el: Eliminate an Emacs compiler warning intr


From: Alan Mackenzie
Subject: master ec2dfd110c: cc-fonts.el: Eliminate an Emacs compiler warning introduced yesterday.
Date: Fri, 16 Sep 2022 09:59:51 -0400 (EDT)

branch: master
commit ec2dfd110c407038ab1abc7fd713d37ada91edd9
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>

    cc-fonts.el: Eliminate an Emacs compiler warning introduced yesterday.
    
    * lisp/progmodes/cc-fonts.el (top level): Introduce a cc-bytecomp-defvar for
    font-lock-reference-face.
---
 lisp/progmodes/cc-fonts.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index c52f4a8416..5d80eb58e3 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -99,6 +99,8 @@
 (cc-bytecomp-defun c-font-lock-invalid-string)
 (cc-bytecomp-defun c-font-lock-fontify-region)
 
+(cc-bytecomp-defvar font-lock-reference-face) ; For Emacs 29
+
 
 ;; Note that font-lock in XEmacs doesn't expand face names as
 ;; variables, so we have to use the (eval . FORM) in the font lock
@@ -165,9 +167,8 @@
 
 (defconst c-doc-markup-face-name
   (if (c-face-name-p 'font-lock-doc-markup-face)
-        ;; If it happens to occur in the future.  (Well, the more
-        ;; pragmatic reason is to get unique faces for the test
-        ;; suite.)
+        ;; Exists in Emacs 28+.  (For other emacsen, the pragmatic
+        ;; reason is to get unique faces for the test suite.)
         'font-lock-doc-markup-face
     c-label-face-name))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]