From 573de396f03684efa89ead24a371b0f4c9bf8d5d Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 27 Jun 2019 13:30:36 +0200 Subject: [PATCH] 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 ee5a9c0fce2..5ba0ef5b2a8 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)) -- 2.39.2