GNU bug report logs - #2355
23.0.60; Enabling minor-mode disables major mode

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Tue, 17 Feb 2009 11:55:06 UTC

Severity: minor

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Leo <sdl.web <at> gmail.com>
Cc: control <at> debbugs.gnu.org, 2355 <at> debbugs.gnu.org
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




This bug report was last modified 14 years and 20 days ago.

Previous Next


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