summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2015-10-13 20:47:38 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2015-10-13 20:47:38 +0200
commit927382cfa14106dcb9a44d4a2f0f9137c3a534fc (patch)
tree36d87ae0ba34adc33d2bdf41d1705f8255767faa /elisp
parenta4b124b753dac07a7b9d085d6643eea018e13fc6 (diff)
downloadgeiser-927382cfa14106dcb9a44d4a2f0f9137c3a534fc.tar.gz
geiser-927382cfa14106dcb9a44d4a2f0f9137c3a534fc.tar.bz2
Oops: font-lock-ensure is from the future
Should fix #105
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-syntax.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 8e06339..022c4a0 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -481,7 +481,11 @@ implementation-specific entries for font-lock-keywords.")
(set-buffer (geiser-syntax--font-lock-buffer))
(erase-buffer)
(insert str)
- (let ((font-lock-verbose nil)) (font-lock-ensure))
+ (let ((font-lock-verbose nil))
+ (if (fboundp 'font-lock-ensure)
+ (font-lock-ensure)
+ (with-no-warnings
+ (font-lock-fontify-buffer))))
(buffer-string)))