GNU bug report logs -
#32027
26.1; variable font-lock-major-mode is nil in text-mode
Previous Next
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 #14 received at 32027 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Correction: I meant font-lock-major-mode, not global-font-lock-mode.
________________________________
Von: Benjamin Orthen
Gesendet: Dienstag, 3. Juli 2018 11:20:58
An: Eli Zaretskii
Cc: 32027 <at> debbugs.gnu.org
Betreff: AW: bug#32027: 26.1; variable font-lock-major-mode is nil in text-mode
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.