Browse Source

testing/org-test.el: Ensure font-lock is set in temp text

* testing/org-test.el (org-test-with-temp-text): Ensure
font-lock is set.

TINYCHANGE
Tom Gillespie 3 months ago
parent
commit
44d08f35cb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      testing/org-test.el

+ 1 - 0
testing/org-test.el

@@ -199,6 +199,7 @@ otherwise place the point at the beginning of the inserted text."
 	       (goto-char (1+ (match-beginning 0))))
 	   (insert inside-text)
 	   (goto-char (point-min))))
+       (font-lock-ensure (point-min) (point-max))
        ,@body)))
 (def-edebug-spec org-test-with-temp-text (form body))