branch: externals/mmm-mode
commit 118ae3340e7f6ef0cc23ee8f6574ebd03ab2c701
Author: Ola Nilsson <ola.nils...@gmail.com>
Commit: Ola Nilsson <ola.nils...@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