From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: [RFC] [PATCH] allow bind keywords to set safe values Date: Sat, 07 Nov 2015 12:19:36 +0000 Message-ID: <87oaf6t31j.fsf@gmail.com> References: <8737wjuhif.fsf@gmail.com> <87y4eaeug0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv2T8-0006No-8X for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 07:19:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zv2T5-00021k-51 for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 07:19:42 -0500 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:36525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv2T4-00021g-VR for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 07:19:39 -0500 Received: by wimw2 with SMTP id w2so44953380wim.1 for ; Sat, 07 Nov 2015 04:19:38 -0800 (PST) In-Reply-To: <87y4eaeug0.fsf@nicolasgoaziou.fr> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou , orgmode Hi Nicolas, 2015ko azaroak 6an, Nicolas Goaziou-ek idatzi zuen: >=20 > Hello, >=20 > Aaron Ecay writes: >=20 >> BIND keywords should be used for controlling export, rather than the >> usual emacs method of setting file local variables >> . >=20 > In this message, I say that file local variables may not replace BIND > keywords (although, I still cannot remember why). >=20 > 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 =E2=80=93 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.) >=20 >> But, BIND keywords are currently disabled by default. We can=E2=80=99t t= urn >> these on by default, as maliciously crafted documents could do nasty >> things to a user=E2=80=99s emacs. The attached patch permits many intere= sting >> 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=E2=80=99s >> default file local variable code). >=20 > Sounds good. OK. I will push a patch to master with your suggestions. Thanks, --=20 Aaron Ecay