]> git.eshelyaron.com Git - sweep.git/commitdiff
; Fix error on Emacs 27 with no 'font-lock-keywords'
authorEshel Yaron <me@eshelyaron.com>
Thu, 14 Sep 2023 20:47:07 +0000 (22:47 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 14 Sep 2023 20:47:07 +0000 (22:47 +0200)
sweeprolog.el

index 1c6d1723f6214cd30f847475e898cbccf849011d..9adaab8bf913941069eaa8a7b8e195b6bab814be 100644 (file)
@@ -3001,7 +3001,8 @@ modified."
          (sweeprolog-end-of-top-term)
          (skip-chars-forward " \t\n")
          (sweeprolog-analyze-term cur (point))
-         (font-lock-fontify-keywords-region start (point) verbose)
+         (when font-lock-keywords
+           (font-lock-fontify-keywords-region start (point) verbose))
          `(jit-lock-bounds ,start . ,(point)))))))
 
 (defun sweeprolog-syntax-propertize (start end)