From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] is #+bind supported? Date: Wed, 06 Mar 2013 11:21:38 +0100 Message-ID: <877glk25hp.fsf@gmail.com> References: <874ngq7wsq.fsf@pinto.chemeng.ucl.ac.uk> <8738w9ts9t.fsf@gmail.com> <87r4jsykpx.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDBTu-0002yN-Ok for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 05:21:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDBTq-0001JD-Pb for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 05:21:54 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:43369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDBTq-0001J3-JL for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 05:21:50 -0500 Received: by mail-wg0-f45.google.com with SMTP id dq12so7073952wgb.0 for ; Wed, 06 Mar 2013 02:21:49 -0800 (PST) In-Reply-To: <87r4jsykpx.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 6 Mar 2013 08:51:38 +0000") 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 Eric S Fraga writes: > Nicolas Goaziou writes: > > [...] > >> Bind keywords are supported. Unfortunately, `org-latex-pdf-process' is >> not bind-able. >> >> BIND variables are set as buffer-local variables in the buffer where the >> transcoding takes place. So, they affect the way the current buffer is >> changed into LaTeX code. >> >> However, `org-latex-pdf-process' is used during post-processing, i.e. >> after transcoding is over. At this time, the buffer where local >> variables were set has disappeared already. > > Okay, I see how this works. Thanks for the explanation. Would it not > be possible to set the bound variables for the latex buffer as well? Or > does that open up a can of worms? Just curious. There is no latex buffer. Export produces a string. Whet it is complete, the current buffer is the original buffer from which the original command was issued. IOW, what you suggest means that BIND keywords should set local variables in the original buffer. I'm not sure it is the intended goal for these keywords. If you need to set a local buffer variable, it is better to use the dedicated tools. Regards, -- Nicolas Goaziou