From: Wilfred Hughes Date: Thu, 27 Jun 2019 11:30:36 +0000 (+0200) Subject: Apply font-lock in hexl-mode buffers X-Git-Tag: emacs-27.0.90~2193 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=573de396f03684efa89ead24a371b0f4c9bf8d5d;p=emacs.git 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). --- 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))