From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yagnesh Raghava Yakkala Subject: Re: AUCTeX conflicting with org-mode Date: Wed, 07 Mar 2012 14:08:07 +0900 Message-ID: <87sjhlxako.fsf@live.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S596v-0003qF-63 for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 00:08:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S596t-0000Ko-GM for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 00:08:24 -0500 Received: from plane.gmane.org ([80.91.229.3]:58790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S596t-0000Kh-9D for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 00:08:23 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S596r-0002I4-Gp for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 06:08:21 +0100 Received: from 59x158x65x92.ap59.ftth.ucom.ne.jp ([59.158.65.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Mar 2012 06:08:21 +0100 Received: from yagnesh by 59x158x65x92.ap59.ftth.ucom.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Mar 2012 06:08:21 +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 Suvayu, suvayu ali writes: > Hi, > > I am having conflicts AUCTeX when I try to open plain latex files after > I exporting an org file to latex. These are the exact steps. > > 1. Start Emacs as: emacs -q (so that the site files load and I have > auctex available). > 2. Open any org file and export to latex, C-c C-e l. > 3. Open another plain latex file. > > At this point I see this backtrace: > > Debugger entered--Lisp error: (void-variable TeX-master) > #[nil "\301\302 !\203 > \303=\203 \304\305\211\306#\210\307\306!\207" [TeX-master > file-exists-p buffer-file-name shared TeX-master-file nil t > TeX-update-style] 4]() > run-hooks(find-file-hook) > after-find-file(nil t) > find-file-noselect-1(# > "~/graphics/velo-links.tex" nil nil "~/graphics/velo-links.tex" > (263573 64770)) > find-file-noselect("~/graphics/velo-links.tex" nil nil t) > find-file("~/graphics/velo-links.tex" t) > call-interactively(find-file nil nil) > > Since removing the auctex site files out of the site-lisp directory > resolves the conflict I am assuming the problem stems from my auctex > installation. > > Can someone help me trouble shoot this? I can reproduce this., I think your auctex installation is fine. Its definitely from org. In org-latex.el Tex-master is set to t to suppress auctex from asking for that variable while exporting with org-latex..(IIRC there was a discussion and Carsten made that change) Some how org leaving that to void at the end of org-latex export (I coundn't figure out how?). -- YYR