浏览代码

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 5 年之前
父节点
当前提交
44d08f35cb
共有 1 个文件被更改,包括 1 次插入0 次删除
  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))