From e33305afaef53e296cbcf468dafec460f3661793 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 12 Jun 2016 18:32:48 +0200 Subject: Real fix fontification on scheme switch --- elisp/geiser-base.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'elisp/geiser-base.el') 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) -- cgit v1.2.3