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).
This commit is contained in:
Wilfred Hughes 2019-06-27 13:30:36 +02:00 committed by Lars Ingebrigtsen
parent e3b70e6b2d
commit 573de396f0

View file

@ -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))