unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Leo <sdl.web@gmail.com>
Cc: control@emacsbugs.donarmstrong.com, 2355@emacsbugs.donarmstrong.com
Subject: bug#2355: 23.0.60; Enabling minor-mode disables major mode
Date: Tue, 17 Feb 2009 15:37:35 +0100	[thread overview]
Message-ID: <f7ccd24b0902170637n3ec39fdbo56f4da050818bb14@mail.gmail.com> (raw)
In-Reply-To: <83vdr9b82w.fsf@cam.ac.uk>

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	other threads:[~2009-02-17 14:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-17 11:45 bug#2355: 23.0.60; Enabling minor-mode disables major mode Leo
2009-02-17 14:37 ` Juanma Barranquero [this message]
2009-02-17 14:45   ` Processed: " Emacs bug Tracking System
2009-02-17 16:04   ` Leo
2009-02-17 16:43     ` Juanma Barranquero
2009-02-18  7:42       ` Leo
2009-02-18  8:56         ` Juanma Barranquero
2011-05-10  2:33           ` Glenn Morris
2009-02-18 14:23         ` Stefan Monnier
2009-02-18 15:13           ` Juanma Barranquero
2009-02-18 16:58             ` Stefan Monnier
2009-02-18 17:48               ` Juanma Barranquero
2009-02-18 19:46                 ` Stefan Monnier
2009-02-18 18:09               ` Johan =?UTF-8?Q?Bockg=C3=A5rd
2009-02-18 17:49             ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0902170637n3ec39fdbo56f4da050818bb14@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=2355@emacsbugs.donarmstrong.com \
    --cc=control@emacsbugs.donarmstrong.com \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).