From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: mode in -*- line Date: Sat, 7 May 2005 16:42:26 -0500 (CDT) Message-ID: <200505072142.j47LgQO24114@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1115501875 24199 80.91.229.2 (7 May 2005 21:37:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 May 2005 21:37:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 23:37:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DUWzQ-0005Fy-V7 for ged-emacs-devel@m.gmane.org; Sat, 07 May 2005 23:37:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUX7Q-0006nm-PI for ged-emacs-devel@m.gmane.org; Sat, 07 May 2005 17:45:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DUX5s-0006Mt-SK for emacs-devel@gnu.org; Sat, 07 May 2005 17:44:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DUX5m-0006Jy-9k for emacs-devel@gnu.org; Sat, 07 May 2005 17:44:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUX5k-0006JS-DR for emacs-devel@gnu.org; Sat, 07 May 2005 17:44:08 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DUXA7-0003DU-Gw for emacs-devel@gnu.org; Sat, 07 May 2005 17:48:40 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j47Lgpog005003 for ; Sat, 7 May 2005 16:42:51 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j47LgQO24114; Sat, 7 May 2005 16:42:26 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36839 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36839 There are two things I noticed about modes in the -*- line. Firstly, if normal-mode is called interactively, it unconditionally processes all local variables in the -*- line and the local variables list _except_ that it ignores a mode in the -*- line if enable-local-variables is nil. I guess that this exception is unintentional. If so, it is easy to fix. Secondly, if I set enable-local-variables to 'ask and visit a file with a mode in the -*- line, and then answer twice no to the questions asking me whether I want to process local variables, then indeed no local variables are processed, _except_ for the mode in the -*- line. Is this intentional? If not, this is a little bit trickier, because the most obvious way to solve it would be to ask the user a third question (in set-auto-mode) and two is already many. Sincerely, Luc.