Hi Nicolas, 2015ko azaroak 6an, Nicolas Goaziou-ek idatzi zuen: > > Hello, > > Aaron Ecay <aarone...@gmail.com> writes: > >> BIND keywords should be used for controlling export, rather than the >> usual emacs method of setting file local variables >> <http://mid.gmane.org/87eglcbv7g.fsf@selenimh.access.network>. > > In this message, I say that file local variables may not replace BIND > keywords (although, I still cannot remember why). > > However, BIND keywords cannot replace file local variables, because some > variables are used outside of `org-export-as'. `org-latex-compiler' > comes to mind.
You are right, both are needed. Maybe org-mode (the function, i.e. the code executed when opening an org-mode file) should look for BIND keywords and set local variables according to them. Otherwise people might need the same entry in BIND and the local variables block. WDYT? (Of course, it would be even better if we could convince ourselves that local variables will work 100% of the time for export – then the use case for BIND would be restricted to setupfiles. I tried to see if I could convince myself of this, but quickly got lost.) > >> But, BIND keywords are currently disabled by default. We can’t turn >> these on by default, as maliciously crafted documents could do nasty >> things to a user’s emacs. The attached patch permits many interesting >> usages of BIND keywords by allowing them to set variables by default, >> as long as the value thus set is safe (as implemented by emacs’s >> default file local variable code). > > Sounds good. OK. I will push a patch to master with your suggestions. Thanks, -- Aaron Ecay