summaryrefslogtreecommitdiff
path: root/elisp/geiser-base.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2016-06-12 18:32:48 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2016-06-12 18:32:48 +0200
commit0a3d6ca624332470f406e579f3ed5912169273ea (patch)
treee612dc8fc59203d045b613bf6776b4e5e9f50d56 /elisp/geiser-base.el
parent94210cde9788f9ae677767a531f96a873f5feaf0 (diff)
downloadgeiser-guile-0a3d6ca624332470f406e579f3ed5912169273ea.tar.gz
geiser-guile-0a3d6ca624332470f406e579f3ed5912169273ea.tar.bz2
Real fix fontification on scheme switch
Diffstat (limited to 'elisp/geiser-base.el')
-rw-r--r--elisp/geiser-base.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el
index 4d303db..ee30770 100644
--- a/elisp/geiser-base.el
+++ b/elisp/geiser-base.el
@@ -1,6 +1,6 @@
;;; geiser-base.el --- shared bits
-;; Copyright (C) 2009, 2010, 2012, 2013, 2015 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2012, 2013, 2015, 2016 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -27,6 +27,14 @@
(let ((inhibit-changing-match-data t))
(looking-at regexp))))
+(when (not (fboundp 'font-lock-ensure))
+ (defun font-lock-ensure (&optional beg end)
+ (with-no-warnings (font-lock-fontify-region (or beg (point-min))
+ (or end (point-max))))))
+
+(when (not (fboundp 'font-lock-flush))
+ (defun font-lock-flush (&optional beg end)))
+
;;; Utilities:
(defsubst geiser--chomp (str)