[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Buffer local value lost when exporting? (was Evaluate all org ta

From: Eric S Fraga
Subject: Re: [O] Buffer local value lost when exporting? (was Evaluate all org tables in file before exporting)
Date: Fri, 13 May 2016 08:04:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

On Thursday, 12 May 2016 at 15:54, Kaushal Modi wrote:
> Hi all,
> I almost have a squeaky clean solution to this thanks to the hint
> provided by someone on emacs.SE (
> http://emacs.stackexchange.com/a/22215/115 ).
> But in the process, I seem to have stumbled upon a bug.. the buffer
> local value of variables are not respected at the time of exports.

It's not a bug but a known design feature.  A new buffer is created as
part of the export process and this buffer does not inherit local
variable values.  What you need to do is tell org to set specific
variables upon export.  You can use the #+BIND: directive to do this.

I don't know where this is documented but there is mention of whether to
allow this to happen in the org info manual:

   If ‘org-export-allow-bind-keywords’ is non-‘nil’, Emacs variables can
   become buffer-local during export by using the BIND keyword.  Its
   syntax is ‘#+BIND: variable value’.  This is particularly useful for
   in-buffer settings that cannot be changed using specific keywords.

Give this a try.
: Eric S Fraga (0xFFFCF67D), Emacs, Org release_8.3.4-775-g3308a5

reply via email to

[Prev in Thread] Current Thread [Next in Thread]