From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: BIND and LaTeX export Date: Thu, 16 May 2013 19:52:24 +0200 Message-ID: <871u96q0br.fsf@gmail.com> References: <8761ymu7tk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud2Ly-0002wE-Ad for emacs-orgmode@gnu.org; Thu, 16 May 2013 13:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ud2Lp-0002Fe-BI for emacs-orgmode@gnu.org; Thu, 16 May 2013 13:52:34 -0400 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:51647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud2Lo-0002FQ-V0 for emacs-orgmode@gnu.org; Thu, 16 May 2013 13:52:25 -0400 Received: by mail-wg0-f44.google.com with SMTP id a12so827526wgh.35 for ; Thu, 16 May 2013 10:52:23 -0700 (PDT) In-Reply-To: (Fabrice Popineau's message of "Mon, 13 May 2013 21:13:50 +0200") 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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > 2013/5/13 Nicolas Goaziou >> Fabrice Popineau writes: >> >> I'm surprised it even worked. BIND keywords only affect the export >> process, i.e. Org to LaTeX translation in this case. File compilation to >> PDF is a post-processing thing, these keywords don't survive that long. >> >> > I may have been fooled by my emacs config. > But anyway, given the name org-latex-*, > I thought that it could make sense that this variable survive > till the end of the compilation :-) I understand the problem, but given the separation between the export framework and its back-ends, it's difficult to do so. Indeed, variables are bound in the temporary buffer copy created for the translation but back-ends commands are only given a string (or a buffer or a file name) containing the output. At this time, the copy isn't alive anymore. IOW, there are a few variables that cannot be set using BIND keywords. On the other hand, they still can be set with file local variables. Regards, -- Nicolas Goaziou