|
From: | Sébastien Miquel |
Subject: | Re: local variables and export processing in hooks |
Date: | Tue, 9 Feb 2021 14:21:43 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
Eric S Fraga writes:
I tried but this doesn't seem to be propagated to the export as the export works on a copy of the buffer, not the buffer itself. That's what #+BIND is for, supposedly...
I think this buffer copy preserves local variables. I know I use a such a local variable and its value can be read during macro expansion.
It seems the org-export-before-parsing-hook functions are run before the #+BIND values are collected (see org-export-as in ox.el).
-- Sébastien Miquel
[Prev in Thread] | Current Thread | [Next in Thread] |