GNU bug report logs - #32027
26.1; variable font-lock-major-mode is nil in text-mode

Previous Next

Package: emacs;

Reported by: Benjamin Orthen <benjamin.orthen <at> tum.de>

Date: Sun, 1 Jul 2018 22:38:02 UTC

Severity: minor

Tags: notabug

Found in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Benjamin Orthen <benjamin.orthen <at> tum.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "32027 <at> debbugs.gnu.org" <32027 <at> debbugs.gnu.org>
Subject: Re: AW: bug#32027: 26.1; variable font-lock-major-mode is nil in
 text-mode
Date: Wed, 30 Oct 2019 19:51:03 +0100
Benjamin Orthen <benjamin.orthen <at> tum.de> writes:

>> Because Text mode doesn't set up any font-lock related settings, no?
>
> But why does running M-x font-lock-mode twice (disabling and enabling
> font-lock) in a text buffer set
>
> global-font-lock-mode to text-mode then? I would consider that kind of erratic
> behavior.

I think this is the way it's supposed to work -- that font-lock-mode
variable is just there to keep track of whether we've set up the current
mode for font locking (even if there is no font locking taking place, as
in text mode buffer).

So I don't think there is a bug here, and I'm closing this bug report.
If I've misunderstood, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 285 days ago.

Previous Next


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