From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: TeX-master: TeX-master is let-bound Date: Fri, 26 Oct 2012 08:51:15 +0200 Message-ID: <20121026065115.GC24961@kuru.dyndns-at-home.com> References: <87a9vajy4n@ch.ristopher.com> <20121025214510.GB24961@kuru.dyndns-at-home.com> <87sj92chzi@ch.ristopher.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRdlK-000255-7N for emacs-orgmode@gnu.org; Fri, 26 Oct 2012 02:51:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRdlI-0007xW-5G for emacs-orgmode@gnu.org; Fri, 26 Oct 2012 02:51:22 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:54828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRdlH-0007xE-VV for emacs-orgmode@gnu.org; Fri, 26 Oct 2012 02:51:20 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so1383519wgb.30 for ; Thu, 25 Oct 2012 23:51:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87sj92chzi@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 On Thu, Oct 25, 2012 at 11:19:30PM +0100, Christopher Schmidt wrote: > Suvayu Ali writes: > > On Thu, Oct 25, 2012 at 05:48:57PM +0100, Christopher Schmidt wrote: > >> org-export-as-latex (org-latex.el) let-binds TeX-master. Later on > >> feature tex may be loaded. This is a problem, because in that case > >> the defvar TeX-master of tex (AUCTeX) is ignored. > >> > >> Warning: defvar ignored because TeX-master is let-bound > >> > >> This issue could be fixed by adding (require 'tex nil t). > >> > > > > What is your org-version? AFAIR, this was the case at the beginning > > of this year (Feb-March '12) but I do not think this is an issue > > anymore. > > No, it is in both maint and master (org-latex.el:958) right now. To be > honest, why is TeX-master exactly bound in the first place? > > (TeX-master (boundp 'TeX-master)) > > For the record, I use Org-mode version 7.9.2 (release_7.9.2-62-gde7766), > that is maint from the 15th. of October. > I believe the reason was to get rid of auctex prompting for the master file name every time an org file is exported to LaTeX. -- Suvayu Open source is the future. It sets us free.