diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2019-05-15 01:27:41 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2019-05-15 01:27:41 +0100 |
commit | a30d7dd09c5c96d31e8df749e51cdfc2c346445a (patch) | |
tree | cefe5ca2e76ea94f81a78f94f02173eedfbf23e4 /elisp/geiser-base.el | |
parent | 32f90158347e77aaceb80f79e80e58614ccfd018 (diff) | |
download | geiser-a30d7dd09c5c96d31e8df749e51cdfc2c346445a.tar.gz geiser-a30d7dd09c5c96d31e8df749e51cdfc2c346445a.tar.bz2 |
Alias for font-lock-ensure (should fix #274)
Diffstat (limited to 'elisp/geiser-base.el')
-rw-r--r-- | elisp/geiser-base.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el index aefff5f..95fdc03 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, 2016 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2010, 2012, 2013, 2015, 2016, 2019 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)))) +(defalias 'geiser--font-lock-ensure + (if (fboundp 'font-lock-ensure) + #'font-lock-ensure + (with-no-warnings + (lambda (&optional _beg _end) + (when font-lock-mode + (font-lock-fontify-buffer)))))) + ;;; Utilities: (defsubst geiser--chomp (str) |