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

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

[nongnu] elpa/forth-mode 5b42dfac0c 105/153: Merge branch 'master' into


From: ELPA Syncer
Subject: [nongnu] elpa/forth-mode 5b42dfac0c 105/153: Merge branch 'master' into case-insensitive-indentation
Date: Sat, 29 Jan 2022 08:02:22 -0500 (EST)

branch: elpa/forth-mode
commit 5b42dfac0cf93cb238e4648178d7b4dee3239aa3
Merge: 45f3f20f18 992bfb64b4
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Helmut Eller <eller.helmut@gmail.com>

    Merge branch 'master' into case-insensitive-indentation
---
 .travis.yml   | 6 +++++-
 test/tests.el | 7 ++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a986285750..955735c36f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,11 @@ sudo: required
 env:
   - EMACS=emacs23
   - EMACS=emacs24
-install: sudo apt-get update -y && sudo apt-get install emacs23 emacs24
+  - EMACS=emacs-snapshot
+install:
+  - sudo add-apt-repository -y ppa:ubuntu-elisp
+  - sudo apt-get update -y
+  - sudo apt-get install emacs23 emacs24 emacs-snapshot
 script: make EMACS=$EMACS
 notifications:
   email: lars@nocrew.org
diff --git a/test/tests.el b/test/tests.el
index 57e4428b4a..e9460de9cc 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -23,10 +23,15 @@
      (forth-mode)
      ,@body))
 
+(unless (boundp 'font-lock-ensure)
+  ;; Emacs 24 doesn't have font-lock-ensure.
+  (defun font-lock-ensure ()
+    (font-lock-fontify-buffer)))
+
 (defun forth-assert-face (content pos face)
   (when (boundp 'syntax-propertize-function)
     (forth-with-temp-buffer content
-      (font-lock-fontify-buffer)
+      (font-lock-ensure)
       (should (eq face (get-text-property pos 'face))))))
 
 (defun forth-strip-| (string)



reply via email to

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