From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Steffen Subject: unfortunate "feature interaction" of org-export and emacs-latex-auctex mode Date: Mon, 9 Nov 2015 18:54:17 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvrad-0002eG-5i for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 13:54:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zvraa-0002RQ-0T for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 13:54:51 -0500 Received: from plane.gmane.org ([80.91.229.3]:59188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvraZ-0002QR-Pk for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 13:54:47 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZvraO-00014a-MG for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 19:54:36 +0100 Received: from cm-84.215.65.209.getinternet.no ([84.215.65.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Nov 2015 19:54:36 +0100 Received: from msteffen by cm-84.215.65.209.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Nov 2015 19:54: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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Perhaps it's not really a "fault" of org (nor of auctex), but both things interact unfortunate. The reason is: when I export org to LaTeX, and I visit the latex file afterwards, I want that auctex/emacs is instructed about some facts. Thus I like to have some lines such as %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: at the end of the latex file. Org allows that, in that I add the "LATEX-only" export at the end of the org-file #+BEGIN_LATEX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: #+END_LATEX Doing that produces the desired lines at the end of the generated latex, and if I visit the latex file, emacs/auctex is instructed according to my wishes. Now the problem: If I refresh the /org/ file, emacs/org thinks that actually the file is a latex file (due to the line "mode: latex") and switches from org-mode to latex-mode. It's a minor thing, obviously, but I just wonder if there's an easy workaround. Martin