diff options
| author | Wilfred Hughes | 2019-06-27 13:30:36 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-27 13:30:36 +0200 |
| commit | 573de396f03684efa89ead24a371b0f4c9bf8d5d (patch) | |
| tree | 9878c91ece8fde684203d6a1067dc8bdbf014272 | |
| parent | e3b70e6b2dc5805fa92c9ddbf42fed81ed835f1b (diff) | |
| download | emacs-573de396f03684efa89ead24a371b0f4c9bf8d5d.tar.gz emacs-573de396f03684efa89ead24a371b0f4c9bf8d5d.zip | |
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).
| -rw-r--r-- | lisp/hexl.el | 2 |
1 files changed, 2 insertions, 0 deletions
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. | |||
| 374 | "hexl-current-address") | 374 | "hexl-current-address") |
| 375 | 375 | ||
| 376 | (if hexl-follow-ascii (hexl-follow-ascii-mode 1))) | 376 | (if hexl-follow-ascii (hexl-follow-ascii-mode 1))) |
| 377 | (when global-font-lock-mode | ||
| 378 | (font-lock-ensure)) | ||
| 377 | (run-mode-hooks 'hexl-mode-hook)) | 379 | (run-mode-hooks 'hexl-mode-hook)) |
| 378 | 380 | ||
| 379 | 381 | ||