GNU bug report logs - #31915
26.0.50; highlight-regexp does not highlight regexp

Previous Next

Package: emacs;

Reported by: Markus Triska <triska <at> metalevel.at>

Date: Wed, 20 Jun 2018 16:27:02 UTC

Severity: minor

Found in version 26.0.50

Full log


Message #14 received at 31915 <at> debbugs.gnu.org (full text, mbox):

From: Markus Triska <triska <at> metalevel.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31915 <at> debbugs.gnu.org
Subject: Re: bug#31915: 26.0.50; highlight-regexp does not highlight regexp
Date: Wed, 20 Jun 2018 23:22:53 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Actually, that buffer is in Fundamental mode, where there's no
> font-lock.  Somehow, I suspect you already know that.

In the snippet I posted, I used the variable font-lock-mode to test
whether font-lock is enabled. Its documentation states:

    Non-nil if Font-Lock mode is enabled.

Is this documentation valid? If not, could you please adapt it, or -
alternatively - make the implementation match the description?

> Would it suffice to say "Note that in Fundamental mode, there's no
> font lock, so overlays are always used"?  Or did you mean something
> else?

Personally, I suspect that adding this would not cover all cases. I get
this impression from looking at hi-lock-set-pattern:

      (if (and font-lock-mode (font-lock-specified-p major-mode))

This condition seems to be different from what is documented.

Thank you and all the best,
Markus




This bug report was last modified 6 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.