[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/htmlize 75c21c7 116/134: Use `font-lock-ensure' where avai
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/htmlize 75c21c7 116/134: Use `font-lock-ensure' where available. (#14) |
Date: |
Sat, 7 Aug 2021 09:17:18 -0400 (EDT) |
branch: elpa/htmlize
commit 75c21c7f4ddff0d1bbdf1b4f66a947368a6f3188
Author: Hrvoje Niksic <hniksic@gmail.com>
Commit: Hrvoje Niksic <hniksic@gmail.com>
Use `font-lock-ensure' where available. (#14)
---
README.md | 7 +++----
htmlize.el | 8 ++++----
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 64e5443..12d060f 100644
--- a/README.md
+++ b/README.md
@@ -28,10 +28,9 @@ buffer or move the point. htmlize will do its best to work
on
non-windowing Emacs sessions but the result will be limited to
colors supported by the terminal.
-htmlize aims for compatibility with Emacsen version 22 and later.
-Please let me know if it doesn't work on the version of XEmacs or
-GNU Emacs that you are using. The package relies on the presence
-of CL extensions, especially for cross-emacs compatibility.
+htmlize aims for compatibility with older Emacs versions. Please
+let me know if it doesn't work on the version of GNU Emacs that you
+are using.
[1]:
http://htmlpreview.github.io/?https://github.com/hniksic/emacs-htmlize/blob/master/htmlize.el.html
diff --git a/htmlize.el b/htmlize.el
index d4d65d9..388492e 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -1822,10 +1822,10 @@ does not name a directory, it will be used as output
file name."
(let ((buffer-file-name file))
;; Set the major mode for the sake of font-lock.
(normal-mode)
- (font-lock-mode 1)
- (unless font-lock-mode
- ;; In GNU Emacs (font-lock-mode 1) doesn't force font-lock,
- ;; contrary to the documentation. This seems to work.
+ (if (fboundp 'font-lock-ensure)
+ (font-lock-ensure)
+ ;; Emacs prior to 25.1
+ (font-lock-mode 1)
(font-lock-fontify-buffer))
;; htmlize the buffer and save the HTML.
(with-current-buffer (htmlize-buffer-1)
- [nongnu] elpa/htmlize db4b76e 076/134: New file: NEWS, (continued)
- [nongnu] elpa/htmlize db4b76e 076/134: New file: NEWS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 87d4a43 080/134: Recognize tmp overlays with an overlay property., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 67b8bf3 086/134: Implement form feed replacement with <hr/> as a temporary overlay with, ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 9e4c0bc 089/134: Faces that come first take precedence over those that come later., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 5d9be53 093/134: Bumped version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize ece5b5f 095/134: Bumped version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 974c169 098/134: Set `lexical-binding' to `t' in the first line of the file., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 8593a5e 111/134: Put style information in <pre> tags., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize a0b55cb 112/134: Introduced option for styling <pre>, "screenshot" function., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 133ac35 115/134: Remove XEmacs support., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 75c21c7 116/134: Use `font-lock-ensure' where available. (#14),
ELPA Syncer <=
- [nongnu] elpa/htmlize 315a8f2 121/134: htmlize-sorted-overlays-at: correctly initialize OVERLAYS. (#18), ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize e01bb6f 123/134: Bump version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize d6dc274 125/134: Remove unused function., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize b9789ba 126/134: Don't warn on the use of font-lock-fontify-buffer in older Emacsen., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 682edbf 130/134: Mention the orgmode mirror., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 4920510 134/134: Fix more cl symbols., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 7b63aa0 131/134: Bump version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 567d55c 124/134: Don't convert ^L to <hr/> in invisible text., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 8db0aa6 129/134: Remove unnecessary byte-compile warning suppressions., ELPA Syncer, 2021/08/07