From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2355: 23.0.60; Enabling minor-mode disables major mode Date: Wed, 18 Feb 2009 09:23:42 -0500 Message-ID: References: <83vdr9b82w.fsf@cam.ac.uk> Reply-To: Stefan Monnier , 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 1234968635 13802 80.91.229.12 (18 Feb 2009 14:50:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 14:50:35 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 2355@emacsbugs.donarmstrong.com To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 15:51:50 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 1LZnm9-0004fB-Ns for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 15:51:50 +0100 Original-Received: from localhost ([127.0.0.1]:57850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZnkp-0003ju-KK for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 09:50:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZneO-0000al-6f for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:43:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZneM-0000YL-94 for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:43:46 -0500 Original-Received: from [199.232.76.173] (port=53014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZneH-0000X9-OL for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:43:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54845) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZneG-0003N3-TF for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:43:41 -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 n1IEhZ00023376; Wed, 18 Feb 2009 06:43:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1IEU21U018905; Wed, 18 Feb 2009 06:30:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Feb 2009 14:30:02 +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.123496703717128 (code B ref -1); Wed, 18 Feb 2009 14:30:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 Feb 2009 14:23:57 +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 n1IENpCE017111 for ; Wed, 18 Feb 2009 06:23:53 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZnL5-0005mK-1T for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:23:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZnL3-0005iH-KO for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:23:50 -0500 Original-Received: from [199.232.76.173] (port=54891 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZnL2-0005hn-UG for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:23:48 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:61996 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZnL2-0000Mw-Lu for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 09:23:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuMFAAupm0lMCpTK/2dsb2JhbACBbtJShBMGgzw X-IronPort-AV: E=Sophos;i="4.38,229,1233550800"; d="scan'208";a="34028413" Original-Received: from 76-10-148-202.dsl.teksavvy.com (HELO pastel.home) ([76.10.148.202]) by ironport2-out.teksavvy.com with ESMTP; 18 Feb 2009 09:23:43 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D99D18442; Wed, 18 Feb 2009 09:23:42 -0500 (EST) In-Reply-To: (Leo's message of "Wed, 18 Feb 2009 07:42:35 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 18 Feb 2009 09:43:46 -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:25409 Archived-At: > 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