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: Mon, 31 Oct 2011 22:33:31 +0100 Message-ID: <4EAF142B.90700@christianmoe.com> References: <87vcr5c76e.fsf@gmail.com> <87vcr5j5a5.fsf@gmail.com> <8762j4evjl.fsf@gmail.com> 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]:50742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKzQN-0006xR-3r for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 17:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKzQL-0000DG-W6 for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 17:29:43 -0400 Received: from b1.hitrost.net ([91.185.211.67]:33380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKzQL-0000D1-Ot for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 17:29:41 -0400 In-Reply-To: <8762j4evjl.fsf@gmail.com> 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 Cc: Org Mode List On 10/31/11 9:49 PM, Nicolas Goaziou wrote: > #+begin_src org > #+property: :var foo=1 > #+property: :var bar=2 > #+property: :var baz=3 > #+property: :var qux=4 > #+end_src Two problems: 1) You need to drop the colons before var. 2) The outcome is not what you expect. ---- #+property: var foo=1 #+property: var bar=2 #+property: var baz=3 #+property: var qux=4 #+begin_src perl :results output print "foo is $foo, bar is $bar, baz is $baz, qux is $qux" #+end_src #+results: : foo is 1, bar is , baz is , qux is ---- Because as things currently work, further assignments to the same property (var) by subsequent #+PROPERTY lines are ignored. (Whereas further assignments to the same property in property drawers further down an outline tree will `overwrite' assignments higher up.) Yours, Christian