From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: About commit named "Allow multi-line properties to be specified in property blocks" Date: Thu, 03 Nov 2011 09:08:14 +0100 Message-ID: <4EB24BEE.90902@christianmoe.com> References: <87vcr5c76e.fsf@gmail.com> <87vcr5j5a5.fsf@gmail.com> <4EAF118C.8050806@christianmoe.com> <87hb2mo7ek.fsf@altern.org> <87obwuh19t.fsf@gmail.com> <87hb2mdmi9.fsf@gnu.org> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLsHl-0004Nl-RU for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 04:04:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLsHk-0005ma-T5 for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 04:04:29 -0400 Received: from b1.hitrost.net ([91.185.211.67]:28425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLsHk-0005mS-Kl for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 04:04:28 -0400 In-Reply-To: <87hb2mdmi9.fsf@gnu.org> 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: Bastien Cc: Org Mode List , Nicolas Goaziou On 11/3/11 2:26 AM, Bastien wrote: > Hi Nicolas, > > Nicolas Goaziou writes: (...) >> There is also "#+bind:", whose purpose is close enough. > > Indeed. Eric, would it be possible to use > > #+bind foo 1 > > instead of > > #+property var foo=1 Correct me if I'm wrong, but the purpose of #+BIND is to specify a file local variable, isn't it? The manual gives one example of how to modify export settings with it. With Babel blocks, there should be clarity what variables are to be passed to the block as arguments, and what variables should not. Currently this is completely clear: Only variables named in a `var' property or header argument are passed. Using =#+bind foo 1= would be ambiguous; you wouldn't know when it's for Babel and when it's not. Say we make Babel use BIND values, and someone has this setup: #+BIND: org-export-latex-low-levels itemize #+BIND: foo 1 #+BIND: bar 2 Then this: #+BEGIN_SRC emacs-lisp (+ foo bar) #+END_SRC would tangle to something like: (let ((org-export-latex-low-levels (guote itemize)) (foo (quote 1)) (bar (quote 2))) (+ foo bar)) -- which was not the intention. Yours, Christian