emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/mmm-mode 118ae3340e 1/2: Silence byte compiler warnings


From: ELPA Syncer
Subject: [elpa] externals/mmm-mode 118ae3340e 1/2: Silence byte compiler warnings for font-lock-syntactic-keywords
Date: Wed, 28 Dec 2022 14:57:51 -0500 (EST)

branch: externals/mmm-mode
commit 118ae3340e7f6ef0cc23ee8f6574ebd03ab2c701
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>

    Silence byte compiler warnings for font-lock-syntactic-keywords
    
    The variable font-lock-syntactic-keywords is obsolete since Emacs
    24.1.  Even if mmm-mode only supports Emacs 25.1 and forward it still
    has to handle submodes that still use it.
    
    Silence the annoying byte compiler warning by checking if
    font-lock-syntactic-keywords is bound before using it.
---
 mmm-region.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmm-region.el b/mmm-region.el
index a0c5b4f3eb..f02b3bf8f9 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -874,7 +874,7 @@ calls each respective submode's 
`syntax-propertize-function'."
                       (cond
                        (func
                         (funcall func beg end))
-                       (font-lock-syntactic-keywords
+                       ((bound-and-true-p font-lock-syntactic-keywords)
                         (let ((syntax-propertize-function nil))
                           (font-lock-fontify-syntactic-keywords-region beg 
end))))
                       (run-hook-with-args 
'mmm-after-syntax-propertize-functions



reply via email to

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