From 3b08a468660482f4bc46d18c2da9ae799cdd0c5d Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Thu, 14 Sep 2023 22:47:07 +0200 Subject: [PATCH] ; Fix error on Emacs 27 with no 'font-lock-keywords' --- sweeprolog.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sweeprolog.el b/sweeprolog.el index 1c6d172..9adaab8 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -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) -- 2.39.5