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 #11 received at 32027 <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Orthen <benjamin.orthen <at> tum.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "32027 <at> debbugs.gnu.org" <32027 <at> debbugs.gnu.org>
Subject: AW: bug#32027: 26.1; variable font-lock-major-mode is nil in text-mode
Date: Tue, 3 Jul 2018 09:20:58 +0000
[Message part 1 (text/plain, inline)]
Thanks for replying so quickly.


> 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.


E.g. hi-lock-mode in text-mode requires font-lock-major-mode to be set to text-mode to work.

________________________________
Von: Eli Zaretskii <eliz <at> gnu.org>
Gesendet: Montag, 2. Juli 2018 17:08:21
An: Benjamin Orthen
Cc: 32027 <at> debbugs.gnu.org
Betreff: Re: bug#32027: 26.1; variable font-lock-major-mode is nil in text-mode

> From: Benjamin Orthen <benjamin.orthen <at> tum.de>
> Date: Sun, 1 Jul 2018 19:53:14 +0000
>
> Problem:
>
> The variable font-lock-major-mode is nil after opening a text file, even
> when global-font-lock-mode is set to t and font-lock-mode is set to t in buffer.

Because Text mode doesn't set up any font-lock related settings, no?
[Message part 2 (text/html, inline)]

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.