From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: TeX-master: TeX-master is let-bound Date: Mon, 29 Oct 2012 19:25:30 -0400 Message-ID: <2583.1351553130@alphaville> 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> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSyi6-00069J-K9 for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 19:25:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSyi5-0008SA-GO for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 19:25:34 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:35949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSyi5-0008S6-AX for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 19:25:33 -0400 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0016.houston.hp.com (Postfix) with ESMTP id 6FC31144FE for ; Mon, 29 Oct 2012 23:25:32 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (openvpn.lnx.usa.hp.com [16.125.113.33]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 32D511008B for ; Mon, 29 Oct 2012 23:25:32 +0000 (UTC) Received: from alphaville (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id CDFB04208C for ; Mon, 29 Oct 2012 19:25:30 -0400 (EDT) In-Reply-To: Message from Christopher Schmidt of "Mon, 29 Oct 2012 22:57:35 -0000." <87390w51k0@ch.ristopher.com> 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 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? > Recipe: > > emacs -q # + AUCTeX > C-x b rms RET > M-x org-mode RET > M-: (insert "a") RET > C-x h > M-x org-export-region-as-latex RET > > # In buffer *Org LaTeX Export* > C-c C-c > > TeX-command-master: Symbol's value as variable is void: TeX-master > > Christopher > I get latex errors saying it cannot find .tex but no emacs errors: ,---- | ERROR: I can't find file `.tex'. | | --- TeX said --- | ! I can't find file `.tex'. | --- HELP --- | TeX can't find a file that it needs. If the name of the missing file | has the extension tex, then it is looking for an input file that you | specified---either your main file or another file inserted with an | \input or \include command. If the missing file has the extension sty | , then you have specified a nonexistent document style or style | option. `---- 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 Nick