From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: LaTeX chunk makes .org file not in Org mode Date: Fri, 16 Nov 2018 16:32:29 +0000 Message-ID: References: <23532.3306.739620.803473@frac.u-strasbg.fr> <877ehdxs1h.fsf@ucl.ac.uk> <23534.47092.122698.159146@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNh38-0002Gn-Pf for emacs-orgmode@gnu.org; Fri, 16 Nov 2018 11:32:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNh33-0005et-9R for emacs-orgmode@gnu.org; Fri, 16 Nov 2018 11:32:54 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:41479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNh31-0005ZF-OE for emacs-orgmode@gnu.org; Fri, 16 Nov 2018 11:32:47 -0500 Received: by mail-wr1-x42a.google.com with SMTP id v18-v6so25495063wrt.8 for ; Fri, 16 Nov 2018 08:32:34 -0800 (PST) In-Reply-To: <23534.47092.122698.159146@frac.u-strasbg.fr> (Alain Cochard's message of "Fri, 16 Nov 2018 13:28:36 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Alain.Cochard@unistra.fr Cc: emacs-orgmode@gnu.org On Friday, 16 Nov 2018 at 13:28, Alain.Cochard@unistra.fr wrote: > > > %%% Local Variables:=20 > > > %%% mode: latex > > > %%% TeX-master: t > > > %%% End:=20 > But it is certainly not obvious to me why the content of this chunk > takes precedence over the file extension -- after all, the manual > says: "Files with the =E2=80=98.org=E2=80=99 extension use Org mode by de= fault." Because local variables are set after the initial loading of the file. When the file is opened, the mode is initially determined by the autoload settings but then local variables allow you to change this as file extensions may not always reflect what you want. --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-894-gf79545