[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 573de39 2/3: Apply font-lock in hexl-mode buffers
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 573de39 2/3: Apply font-lock in hexl-mode buffers |
Date: |
Thu, 27 Jun 2019 07:56:07 -0400 (EDT) |
branch: master
commit 573de396f03684efa89ead24a371b0f4c9bf8d5d
Author: Wilfred Hughes <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Apply font-lock in hexl-mode buffers
* lisp/hexl.el (hexl-mode): After setting font-lock-defaults, we
need to call `font-lock-ensure' to apply hexl-mode faces
(bug#24645).
---
lisp/hexl.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/hexl.el b/lisp/hexl.el
index ee5a9c0..5ba0ef5 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -374,6 +374,8 @@ You can use \\[hexl-find-file] to visit a file in Hexl mode.
"hexl-current-address")
(if hexl-follow-ascii (hexl-follow-ascii-mode 1)))
+ (when global-font-lock-mode
+ (font-lock-ensure))
(run-mode-hooks 'hexl-mode-hook))