From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Mode loaded twice with Local Variables Date: Thu, 11 May 2006 14:31:32 -0400 Message-ID: References: <87vesfmsma.fsf@lrde.org> <52339.128.165.123.132.1147190882.squirrel@webmail.lanl.gov> <87lkt9ent8.fsf@lrde.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1147372383 31657 80.91.229.2 (11 May 2006 18:33:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 May 2006 18:33:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 11 20:33:02 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FeFxs-0001qz-1S for ged-emacs-devel@m.gmane.org; Thu, 11 May 2006 20:32:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeFxr-0003n7-BD for ged-emacs-devel@m.gmane.org; Thu, 11 May 2006 14:32:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeFwl-0003Aw-Ak for emacs-devel@gnu.org; Thu, 11 May 2006 14:31:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeFwk-0003AX-TH for emacs-devel@gnu.org; Thu, 11 May 2006 14:31:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeFwk-0003AR-I6 for emacs-devel@gnu.org; Thu, 11 May 2006 14:31:34 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FeFyJ-0003jv-I1 for emacs-devel@gnu.org; Thu, 11 May 2006 14:33:11 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FeFwi-00017W-AV; Thu, 11 May 2006 14:31:32 -0400 Original-To: michael.cadilhac@lrde.org (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) In-reply-to: <87lkt9ent8.fsf@lrde.org> (michael.cadilhac@lrde.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:54277 Archived-At: I didn't think it was the right fix for one reason : some modes /may/ behave differently on startup if /some/ variables have /certain/ values. In other words, Local Variables would set variables to some value before launching the mode, expecting a specified behavior. Every major mode command discards all local variable bindings, first thing, so that isn't going to happen. (The exception, permanent locals, is only meant for variables that _do not_ relate to the major mode at all.)