OSDN Git Service

set version as 1.4.8-snapshot1
[howm/howm.git] / cheat-font-lock.el
index 21db789..420f36f 100644 (file)
@@ -1,7 +1,6 @@
 ;;; cheat-font-lock.el --- modify font-lock-keywords
-;;; Copyright (C) 2002, 2003, 2004, 2005-2018
-;;;   HIRAOKA Kazuyuki <khi@users.sourceforge.jp>
-;;; $Id: cheat-font-lock.el,v 1.24 2011-12-31 15:07:28 hira Exp $
+;;; Copyright (C) 2002, 2003, 2004, 2005-2020
+;;;   HIRAOKA Kazuyuki <khi@users.osdn.me>
 ;;;
 ;;; This program is free software; you can redistribute it and/or modify
 ;;; it under the terms of the GNU General Public License as published by
   (font-lock-set-defaults))
 
 (defun cheat-font-lock-fontify (&optional dummy)
-  (font-lock-fontify-buffer))
+  (if (fboundp 'font-lock-ensure)
+      (font-lock-ensure)
+    (with-no-warnings
+      (font-lock-fontify-buffer))))
 
 (provide 'cheat-font-lock)