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

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

[nongnu] elpa/forth-mode 3deee67777 097/153: Emacs 23: Don't test font-l


From: ELPA Syncer
Subject: [nongnu] elpa/forth-mode 3deee67777 097/153: Emacs 23: Don't test font-lock.
Date: Sat, 29 Jan 2022 08:02:21 -0500 (EST)

branch: elpa/forth-mode
commit 3deee677772dde5a3fdc1ec2380d32ce0f5d001d
Author: Lars Brinkhoff <lars@nocrew.org>
Commit: Lars Brinkhoff <lars@nocrew.org>

    Emacs 23: Don't test font-lock.
---
 test/tests.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/tests.el b/test/tests.el
index 3e67500f41..9b3337fe16 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -24,9 +24,10 @@
      ,@body))
 
 (defun forth-assert-face (content pos face)
-  (forth-with-temp-buffer content
-    (font-lock-fontify-buffer)
-    (should (eq face (get-text-property pos 'face)))))
+  (when (boundp 'syntax-propertize-function)
+    (forth-with-temp-buffer content
+      (font-lock-fontify-buffer)
+      (should (eq face (get-text-property pos 'face))))))
 
 (ert-deftest forth-paren-comment-font-lock ()
   (forth-assert-face "( )" 1 font-lock-comment-delimiter-face)



reply via email to

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