From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael.cadilhac@lrde.org (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Re: Mode loaded twice with Local Variables Date: Tue, 09 May 2006 15:53:11 +0200 Organization: Epita/LRDE Message-ID: <87vesfl2yg.fsf@lrde.org> References: <87vesfmsma.fsf@lrde.org> <873bfjib8t.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1906023156==" X-Trace: sea.gmane.org 1147182812 22109 80.91.229.2 (9 May 2006 13:53:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 13:53:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 09 15:53:19 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 1FdSdr-0005lB-Px for ged-emacs-devel@m.gmane.org; Tue, 09 May 2006 15:52:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdSdr-0006GS-94 for ged-emacs-devel@m.gmane.org; Tue, 09 May 2006 09:52:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdSde-0006FD-Bc for emacs-devel@gnu.org; Tue, 09 May 2006 09:52:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdSdc-0006F0-Kh for emacs-devel@gnu.org; Tue, 09 May 2006 09:52:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdSdb-0006Ex-N3 for emacs-devel@gnu.org; Tue, 09 May 2006 09:52:31 -0400 Original-Received: from [62.39.139.2] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FdSef-0007if-Rl for emacs-devel@gnu.org; Tue, 09 May 2006 09:53:38 -0400 Original-Received: from mahaena.lrde.epita.fr ([192.168.101.66] helo=mahaena.lrde) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1FdSdZ-0000FY-Lk; Tue, 09 May 2006 15:52:29 +0200 Original-To: Chong Yidong In-Reply-To: <873bfjib8t.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 09 May 2006 09:22:26 -0400") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) 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:54138 Archived-At: --===============1906023156== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Chong Yidong writes: >> Then open `test.foo'. The (message "File opened") will be displayed >> twice: >> - When set-auto-mode will be called (calling foo-mode), >> - When local variables are evaluated (again calling foo-mode). >> >> I don't expect that, in particular, I have some LaTeX file that >> contains mode: LaTeX, but some questions are asked in my >> LaTeX-mode-hook, so they're asked twice. > > AFAIK, this is the behavior in Emacs 21 as well. Does it create any > real problem? I don't think so. As I said: on the loading of some modes, I'm asking question and make more or less huge processing according to the answers. Having them made twice is a pain for me. And even if this behavior is the one of Emacs 21 too, it's still painful. =2D-=20 | Micha=EBl `Micha' Cadilhac | All your base are belong to us. = | | Epita/LRDE Promo 2007 | You have no change to survive = | | http://www.lrde.org/~cadilh_m | make your time, hahaha. = | `-- - JID: micha@amessage.be --' -- Zero Wings - -= -' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEYJ7JZYNf4qobZ7kRAlvXAJ9nX406bdN4hiTefVTuh6GcWRMgjACgmnH4 zA0J5duejLHwoINIf7VdwZo= =HAO6 -----END PGP SIGNATURE----- --=-=-=-- --===============1906023156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1906023156==--