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 18:25:48 -0400 Message-ID: <647.1351549548@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> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSxmR-0002hh-0N for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:26:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSxmP-000280-No for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:25:58 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:27318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSxmP-00026X-J4 for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:25:57 -0400 Received: from g1t0039.austin.hp.com (g1t0039.austin.hp.com [16.236.32.45]) by g1t0026.austin.hp.com (Postfix) with ESMTP id 50451C42A for ; Mon, 29 Oct 2012 22:25:50 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (openvpn.lnx.usa.hp.com [16.125.113.33]) by g1t0039.austin.hp.com (Postfix) with ESMTP id 09B293407C for ; Mon, 29 Oct 2012 22:25:49 +0000 (UTC) Received: from alphaville (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id C54374208C for ; Mon, 29 Oct 2012 18:25:48 -0400 (EDT) In-Reply-To: Message from Christopher Schmidt of "Mon, 29 Oct 2012 21:18:39 -0000." <87625tj7tb@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: > > In any case, if you can get rid of the let-bind (or the need to muck > > with TeX-master at all within org), without introducing a regression, > > we are all ears. > > I think adding (require 'tex nil t) before the let form is a nice fix. > Not really: you end up pulling in auctex even if you are not going to use it. > IMO the situation ATM is pretty bad. If AUCTeX is not loaded pre export > the missing variable definition breaks AUCTeX completely. > 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? Nick