diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2015-10-13 20:47:38 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2015-10-13 20:47:38 +0200 |
commit | 733ea7a4ed1f527b70764a52fe865926d90f5177 (patch) | |
tree | b978ce0b917ff4554bc6e8b3e37eba60532ed303 | |
parent | 25810009873b9b9acdfc3a291ea7c3ec75ab018f (diff) | |
download | geiser-guile-733ea7a4ed1f527b70764a52fe865926d90f5177.tar.gz geiser-guile-733ea7a4ed1f527b70764a52fe865926d90f5177.tar.bz2 |
Oops: font-lock-ensure is from the future
Should fix #105
-rw-r--r-- | elisp/geiser-syntax.el | 6 |
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))) |