From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Schmidt Subject: Re: TeX-master: TeX-master is let-bound Date: Tue, 30 Oct 2012 07:52:13 +0000 (GMT) Message-ID: <87k3u8qtw0@ch.ristopher.com> References: <87a9vajy4n@ch.ristopher.com> <20121025214510.GB24961@kuru.dyndns-at-home.com> <87sj92chzi@ch.ristopher.com> <20121026065115.GC24961@kuru.dyndns-at-home.com> <87mwz98vz4@ch.ristopher.com> <87k3uds0vv@ch.ristopher.com> <2831.1351269097@alphaville> <87625tj7tb@ch.ristopher.com> <647.1351549548@alphaville> <87390w51k0@ch.ristopher.com> <2583.1351553130@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT6cY-0002qj-QK for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 03:52:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT6cS-000793-3J for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 03:52:22 -0400 Received: from ristopher.com ([146.185.21.93]:38865 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT6cR-00078l-Qi for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 03:52:16 -0400 In-Reply-To: <2583.1351553130@alphaville> (Nick Dokos's message of "Mon, 29 Oct 2012 19:25:30 -0400") 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 Nick Dokos writes: Hi Nick, > Christopher Schmidt wrote: > >> Nick Dokos writes: >> > What missing variable definition? By the time the export is >> > finished, the let-bind is gone. There is no definition of >> > TeX-master anywhere, just as if you never had org loaded: why >> > should auctex object to that? >> > >> > So I don't understand why it would break: all the common scenarios >> > that I have tried work with no problem for me. I can load an org >> > file, export to latex, open the latex file (which loads auctex) and >> > do auctex things to it. I don't get any error. What exactly do I >> > have to do in order to break it? >> >> In org-latex.el, within the binding: >> >> (if to-buffer >> (unless (eq major-mode 'latex-mode) (latex-mode)) >> (save-buffer)) >> > > You mean that's where you get the error? No, this is where AUCTeX is loaded. >> Recipe: >> >> emacs -q # + AUCTeX >> C-x b rms RET >> M-x org-mode RET >> M-: (insert "a") RET >> C-x h Are you sure that (featurep 'tex) is nil at this point? >> M-x org-export-region-as-latex RET ... if it is nil, (latex-mode) should load AUCTeX, which ultimately breaks AUCTeX due to the ignored defvar. >> # In buffer *Org LaTeX Export* >> C-c C-c ... this is where I actually get this error: >> TeX-command-master: Symbol's value as variable is void: TeX-master > I get latex errors saying it cannot find .tex but no emacs > errors: [...] > Org-mode version 7.9.2 (release_7.9.2-533-g07c889 @ /home/nick/elisp/org-mode/lisp/) > GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 2012-09-21 on alphaville Org-mode version 7.9.2 (release_7.9.2-497-g8866f8) GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-10-29 Thank you for your help. Regards, Christopher