From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: TeX-master: TeX-master is let-bound Date: Tue, 30 Oct 2012 13:45:31 -0400 Message-ID: <6271.1351619131@alphaville.americas.hpqcorp.net> 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> <87k3u8qtw0@ch.ristopher.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTFsj-0004gd-OZ for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 13:45:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTFsc-00005j-7y for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 13:45:41 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:28522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTFsc-00005X-1j for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 13:45:34 -0400 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0014.houston.hp.com (Postfix) with ESMTP id DF22824431 for ; Tue, 30 Oct 2012 17:45:32 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (alphaville.americas.hpqcorp.net [16.117.226.11]) by g4t0009.houston.hp.com (Postfix) with ESMTP id C5799C222 for ; Tue, 30 Oct 2012 17:45:32 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id 3ACD843D63 for ; Tue, 30 Oct 2012 13:45:32 -0400 (EDT) In-Reply-To: Message from Christopher Schmidt of "Tue, 30 Oct 2012 07:52:13 -0000." <87k3u8qtw0@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: > > 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? Yes. > > >> 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. Not in my case: (latex-mode) loads the standard tex mode. How do you get auctex loaded? I thought it was a separate package that needs special initialization: (load "auctex.el" nil t t) is what the documentation says. And I have 11.86 which I believe is latest available, but I might be behind the times: I haven't worried about it in a few years. Nick