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: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo <sdl.web <at> gmail.com>
Cc: 2355 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: bug#2355: 23.0.60; Enabling minor-mode disables major mode
Date: Wed, 18 Feb 2009 09:23:42 -0500
> But we are only talking about file variables in this case. There are two
> ways of specifying file variables: in the header and at the end of the
> file.

> When they contain the pseudo-variable mode specifying a minor mode, they
> behave differently.

> The two behaviours are as follows.

> 1. put file in fundamental mode and the minor mode (when in header)
> 2. put file in a major mode by auto mode detection and the minor mode
>    (when at the end of file)

> This causes confusion. Do you think this is a bug? If not, I think at
> least the manual can be improved.

Yes, the difference is undesirable.  IIUC there's also another
difference: if the major mode is specified at the end, it is set after
setting the major-mode based on the file name.

It would be good to fix those discrepancies.

But it would also be good to improve the documentation so as to say
clearly that at least one of the `mode's specified should be
a major mode.


        Stefan





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.