From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Buffer local value lost when exporting? (was Evaluate all org tables in file before exporting) Date: Sat, 14 May 2016 10:25:44 +0200 Message-ID: <87oa896o6v.fsf@saiph.selenimh> References: <1ce7789874d84d4d861eabf587693621@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87mvnujv5j.fsf@ucl.ac.uk> <87lh3e7wn8.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1Uta-0007Mm-Bd for emacs-orgmode@gnu.org; Sat, 14 May 2016 04:25:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1UtY-0000VD-FK for emacs-orgmode@gnu.org; Sat, 14 May 2016 04:25:57 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:49312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1UtY-0000Tk-8h for emacs-orgmode@gnu.org; Sat, 14 May 2016 04:25:56 -0400 In-Reply-To: (Kaushal Modi's message of "Fri, 13 May 2016 16:33:05 +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" To: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > It got it working after setting org-export-allow-bind-keywords to t BUT now > I need to set the buffer local value twice: (1) Using the Local Variables > footer style so that that local value is effective when before-save-hook is > run (2) Using #+BIND so that that value is effective when > org-export-before-processing-hook is run. > > Below is the MWE now: > > ===== > | N | > |---| > | | > | | > | | > | | > #+TBLFM: $1=@#-1 > > #+BIND: modi/org-table-enable-buffer-wide-recalculation nil > # Local Variables: > # modi/org-table-enable-buffer-wide-recalculation: nil > # End: > ===== You could cheat and prefix your variable with "org-", e.g., "org-modi/...". You could also try removing the limitation in the code I quoted earlier so that it really copies all local variables before the export process, and test if there are some drawbacks to it. Regards, -- Nicolas Goaziou