]> git.eshelyaron.com Git - emacs.git/commitdiff
Apply font-lock in hexl-mode buffers
authorWilfred Hughes <me@wilfred.me.uk>
Thu, 27 Jun 2019 11:30:36 +0000 (13:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 27 Jun 2019 11:30:36 +0000 (13:30 +0200)
* 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

index ee5a9c0fce2e71ee12bd6408afd435cfdbb8d656..5ba0ef5b2a8a4e354d0339c6ca835f516c3c7611 100644 (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))