From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: TeX-master: TeX-master is let-bound Date: Sat, 23 Feb 2013 10:16:53 +0100 Message-ID: <874nh35ms8.fsf@bzg.ath.cx> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CnW-0000nd-7Y for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:57:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9CnT-0002Y6-8i for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:57:42 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:61609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CnT-0002Xt-23 for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:57:39 -0500 Received: by mail-wg0-f44.google.com with SMTP id dr12so1181047wgb.35 for ; Sat, 23 Feb 2013 02:57:38 -0800 (PST) In-Reply-To: <87390w51k0@ch.ristopher.com> (Christopher Schmidt's message of "Mon, 29 Oct 2012 22:57:35 +0000 (GMT)") 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: Christopher Schmidt Cc: emacs-orgmode@gnu.org Hi Christopher, Christopher Schmidt writes: > In org-latex.el, within the binding: > > (if to-buffer > (unless (eq major-mode 'latex-mode) (latex-mode)) > (save-buffer)) The problem is not in master anymore, but we still need to fix it for maint, from which 7.9.4 will be released soon, and which will be part of Emacs 24.3. > 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 I still cannot reproduce this. I add AUCTeX from ELPA, then I emacs -Q and loaded autoload-auctex.el to make sure the autoloads were correct. I have this in my minimal config: (add-to-list 'auto-mode-alist '("\\.tex\\'" nil TeX-LaTeX-mode)) Even in this case, with Org from maint, C-c C-c in the temporary buffer returns an error about the buffer not associated with the file (which is what I expected), not an error about TeX-master. I've closely read the thread started by Tassilo, but I don't think we are in the same boat: this thread is about defvar'ing a variable that is currently let-bound, not about let-binding a variable that is otherwise defvar'ed. Please let me know if you have another recipe to reproduce the bug, I want to get rid of this issue before 7.9.4. Thanks, -- Bastien