Hello all,
I'm in the process of writing an output style and I'm running into an
issue with buffer local variables and the *muse-temp* buffer.
I correctly have the :set attribute working inside a source list for a
muse-project-alist project. The buffer containing the muse source
file correctly shows that a buffer local override of the global
default is in effect.
The problem arises when my output style's :after function is called
with the *muse-temp* buffer as the current buffer. Although
muse-project-set-variables should be called from
muse-before-publish-hook, the *muse-temp* buffer does not contain the
expected buffer local variables.
The result is that my :after function is using the wrong values for
some configuration variables. As a matter of fact,
muse-current-project isn't even set.
If I begin the function like so, I get the correct values:
(let ((muse-current-project (muse-project-of-file)))
(muse-project-set-variables)
I have a local Git clone and would be more than willing to fix this if
someone where to point me in the correct direction. At this point I'm
thinking that muse-current-project must not be getting set before the
muse-before-publish-hook hooks are executed. If muse-current-project
isn't set, muse-project-set-variables doesn't do anything.
Thanks.
--
Peter Jones
http://pmade.com
_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss