From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Schmidt Subject: Re: TeX-master: TeX-master is let-bound Date: Mon, 29 Oct 2012 22:57:35 +0000 (GMT) Message-ID: <87390w51k0@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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSyH4-00012L-Tj for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:57:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSyH3-0001Gr-JD for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:57:38 -0400 Received: from ristopher.com ([146.185.21.93]:38791 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSyH3-0001GX-4d for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:57:37 -0400 In-Reply-To: <647.1351549548@alphaville> (Nick Dokos's message of "Mon, 29 Oct 2012 18:25:48 -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: > 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)) 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