From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#2355: 23.0.60; Enabling minor-mode disables major mode Date: Wed, 18 Feb 2009 07:42:35 +0000 Organization: University of Cambridge Message-ID: References: <83vdr9b82w.fsf@cam.ac.uk> Reply-To: Leo , 2355@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234944295 28083 80.91.229.12 (18 Feb 2009 08:04:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 08:04:55 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 09:06:09 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZhQg-0003Z0-VE for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 09:05:39 +0100 Original-Received: from localhost ([127.0.0.1]:51855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZhPM-0000Bt-NA for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 03:03:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZhPH-0000Bo-Em for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 03:03:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZhPF-0000Bc-VV for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 03:03:47 -0500 Original-Received: from [199.232.76.173] (port=41136 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZhPF-0000BZ-QP for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 03:03:45 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:21415) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZhPF-0001yk-An for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 03:03:45 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZhPE-0001jZ-Ep for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 03:03:44 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1I83ZiX028247; Wed, 18 Feb 2009 00:03:36 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1I7j4bP022724; Tue, 17 Feb 2009 23:45:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Feb 2009 07:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2355 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123494298122388 (code B ref -1); Wed, 18 Feb 2009 07:45:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 Feb 2009 07:43:01 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1I7gvZP022379 for ; Tue, 17 Feb 2009 23:42:58 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZh56-0007yT-TC for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 02:42:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZh54-0007yE-Ev for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 02:42:55 -0500 Original-Received: from [199.232.76.173] (port=42834 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZh54-0007yB-94 for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 02:42:54 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:60566 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZh53-0008B4-OQ for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 02:42:54 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LZh4y-0003wt-0V for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 07:42:48 +0000 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Feb 2009 07:42:48 +0000 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Feb 2009 07:42:48 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:aH/wNw/Wi2/tvf/8rWw2wFcDQcU= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Wed, 18 Feb 2009 03:03:47 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25397 Archived-At: On 2009-02-17 16:43 +0000, Juanma Barranquero wrote: >> Sorry I was not clear. I am questioning whether the different >> behaviour between these two ways of specifying local variables is a >> bug or not. In my view, it is confusing at least. > > Mode autodetection is complex (there are file variables, > interpreter-mode-alist, magic-mode-alist, magic-fallback-mode-alist, > etc.). It is not impossible to get nonsense (or, at least, unexpected) > results when given inconsistent input data. It would perhaps be better > to detect when a supposed major mode (found with -*-, auto-mode-alist > or whatever) is not really setting major-mode, but that's another bug > ;-) 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. Thanks, -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.