diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2016-06-17 18:54:35 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2016-06-17 18:54:35 +0200 |
commit | 8c8583991007aa3a1831310be5d637104a918a43 (patch) | |
tree | d24cfadca91911105373ab806d825250d77779e4 /elisp/geiser-syntax.el | |
parent | 620f0d039afb7450fb7b27ee953129f7597e61ea (diff) | |
download | geiser-guile-8c8583991007aa3a1831310be5d637104a918a43.tar.gz geiser-guile-8c8583991007aa3a1831310be5d637104a918a43.tar.bz2 |
Be in good terms with haskell-mode
Avoid redefining font-lock-ensure, so that haskell-mode doesn't get mad
at us. Should close github's #164.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 1b4364b..64b366f 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -491,8 +491,9 @@ implementation-specific entries for font-lock-keywords.") (let ((font-lock-verbose nil) (beg (or beg (point-min))) (end (or end (point-max)))) - (font-lock-flush beg end) - (font-lock-ensure beg end))) + (if (fboundp 'font-lock-flush) + (font-lock-flush beg end) + (with-no-warnings (font-lock-fontify-region beg end))))) (defun geiser-syntax--scheme-str (str) (save-current-buffer |