Skip to content

Commit

Permalink
Fix font-lock-ensure on Emacs 24
Browse files Browse the repository at this point in the history
  • Loading branch information
jrblevin committed Nov 6, 2015
1 parent 988791d commit a90db38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit a90db38

Please sign in to comment.