X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/ca001a562783538cad2762d90f8026896b4d6985..23a624ca1d40fa9cefd7229ac6152b79278a6517:/packages/muse/muse-html.el diff --git a/packages/muse/muse-html.el b/packages/muse/muse-html.el index 6a9356bfb..2473025f0 100644 --- a/packages/muse/muse-html.el +++ b/packages/muse/muse-html.el @@ -1,6 +1,6 @@ ;;; muse-html.el --- publish to HTML and XHTML -;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2014 ;; Free Software Foundation, Inc. ;; This file is part of Emacs Muse. It is not part of GNU Emacs. @@ -667,7 +667,9 @@ This tag requires htmlize 1.34 or later in order to work." (if (functionp mode) (funcall mode) (fundamental-mode)) - (font-lock-fontify-buffer) + (if (fboundp 'font-lock-ensure) + (font-lock-ensure) + (font-lock-fontify-buffer)) ;; silence the byte-compiler (when (fboundp 'htmlize-region-for-paste) ;; transform the region to HTML