From a90db38145789d7804dd5da2620ced8b0fff6a25 Mon Sep 17 00:00:00 2001 From: Jason Blevins Date: Thu, 5 Nov 2015 23:36:12 -0500 Subject: [PATCH] Fix font-lock-ensure on Emacs 24 --- tests/markdown-test.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/markdown-test.el b/tests/markdown-test.el index 31c8f846..d863b055 100644 --- a/tests/markdown-test.el +++ b/tests/markdown-test.el @@ -39,7 +39,8 @@ (or load-file-name buffer-file-name)))) (defconst markdown-test-font-lock-function - (if noninteractive #'font-lock-ensure #'font-lock-fontify-buffer)) + (if (and noninteractive (fboundp 'font-lock-ensure)) + #'font-lock-ensure #'font-lock-fontify-buffer)) (defmacro markdown-test-string-mode (mode string &rest body) "Run BODY in a temporary buffer containing STRING in MODE."