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

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

[nongnu] elpa/forth-mode 2e65a80a3b 110/153: Fontify buffer before testi


From: ELPA Syncer
Subject: [nongnu] elpa/forth-mode 2e65a80a3b 110/153: Fontify buffer before testing word movement commands.
Date: Sat, 29 Jan 2022 08:02:23 -0500 (EST)

branch: elpa/forth-mode
commit 2e65a80a3bd613e007677d771037b6655fd68a3d
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Helmut Eller <eller.helmut@gmail.com>

    Fontify buffer before testing word movement commands.
    
    This is needed in Emacs24 to trigger syntax-propertize.
    It doesn't help with Emacs23 (which has no syntax-propertize and
    the syntax table is totally wrong).
    
    * test/tests.el (forth-assert-forward-word): Call font-lock-ensure.
---
 test/tests.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/tests.el b/test/tests.el
index 2125eb33fe..5b3ce27302 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -59,6 +59,7 @@ The whitespace before and including \"|\" on each line is 
removed."
 (defun forth-assert-forward-word (content start end)
   (forth-with-temp-buffer content
     (goto-char start)
+    (font-lock-ensure) ; Make sure syntax-propertize function is called
     (forward-word)
     (should (= (point) end))))
 
@@ -179,7 +180,9 @@ The whitespace before and including \"|\" on each line is 
removed."
    |  [char] f of
    |    foo
    |  endof
-   |  [char] b of bar endof
+   |  [char] b of bar
+   |              baz
+   |           endof
    |  drop exit
    |endcase"))
 



reply via email to

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