bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#2355: 23.0.60; Enabling minor-mode disables major mode


From: Juanma Barranquero
Subject: bug#2355: 23.0.60; Enabling minor-mode disables major mode
Date: Tue, 17 Feb 2009 15:37:35 +0100

tags 2355 + notabug
quit

> ---------------- file: sample.tex ----------------
> %% -*- mode:outline-minor; -*-

You're abusing the "mode" file variable. It's intended to set the
*major* mode. See node "57.3.4.1 Specifying File Variables" in the
Emacs manual.

> ---------------- file: sample.tex ----------------
> % Empty
>
> %% Local Variables:
> %% mode: outline-minor
> %% End:
> --------------------------------------------------
>
> Emacs will put it in LaTeX/TeX mode with outline-minor-mode.
>
> I wonder if this is a bug.

No. The buffer is autodetected as tex-mode buffer, and then the local
variables section is acted upon; but calling (funcall
'outline-minor-mode) does not change the major mode, so it stays in
tex-mode.

    Juanma






reply via email to

[Prev in Thread] Current Thread [Next in Thread]