From: Wilfred Hughes <me@wilfred.me.uk>
To: 24645@debbugs.gnu.org
Subject: bug#24645: [PATCH] hexl-mode does not fontify buffer
Date: Sat, 8 Oct 2016 14:39:20 -0400 [thread overview]
Message-ID: <CAFXAjY5YaLf+jHJgNOWJWhe2wj8Yw0H+W4_qf8gsFgehZe-ZVw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 141 bytes --]
hexl-mode does not ensure font-lock is enabled, so the faces
hexl-address-region and hexl-ascii-region are not applied.
See patch attached.
[-- Attachment #2: 0001-Apply-font-lock-in-hexl-mode-buffers.patch --]
[-- Type: text/x-patch, Size: 683 bytes --]
From e51c63256862967977450d836bcc250cdd357fc9 Mon Sep 17 00:00:00 2001
From: Wilfred Hughes <me@wilfred.me.uk>
Date: Sat, 8 Oct 2016 14:25:43 -0400
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.
---
lisp/hexl.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/hexl.el b/lisp/hexl.el
index 5f099a5..b421f15 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -402,6 +402,7 @@ hexl-mode
"hexl-current-address")
(if hexl-follow-ascii (hexl-follow-ascii 1)))
+ (font-lock-ensure)
(run-mode-hooks 'hexl-mode-hook))
--
2.10.0
next reply other threads:[~2016-10-08 18:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-08 18:39 Wilfred Hughes [this message]
2016-10-08 18:42 ` bug#24645: [PATCH] hexl-mode does not fontify buffer Dmitry Gutov
2016-11-02 4:34 ` Wilfred Hughes
2019-06-27 11:30 ` bug#14194: " Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFXAjY5YaLf+jHJgNOWJWhe2wj8Yw0H+W4_qf8gsFgehZe-ZVw@mail.gmail.com \
--to=me@wilfred.me.uk \
--cc=24645@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.