Re: [O] [babel] How to set multiple variables with properties

2011-06-23 Thread Eric Schulte
I think that a solution more integrated with the rest of Org-mode's property handling would be preferable. That is to say, there should be a way to collect multiple value for a property in Org-mode, and Babel should simply make use of the more general facility. This doesn't exist yet, but I'd rat

Re: [O] [babel] How to set multiple variables with properties

2011-06-23 Thread Eric Schulte
Hi Christian, I took a look at these functions, while they do seem to work they don't provide for any inheritance from higher-level subtrees. I think this is a deal-breaker for use resolving header arguments as inheritance is generally more useful than multiple values. Thanks for pointing these

Re: [O] [babel] How to set multiple variables with properties

2011-06-22 Thread Darlan Cavalcante Moreira
One of the things I tried (that didn't work, otherwise I would not have sent any e-mail) was :PROPERTY: :var: variable1="value1" :var variable2="value2" :END: I thought that maybe babel would just ask org what is the value of :var:, put ":var" before it, and include this in the block header. Ther

Re: [O] [babel] How to set multiple variables with properties

2011-06-22 Thread Christian Moe
Hi again, I was referring to these functions: - org-entry-put-multivalued-property - org-entry-get-multivalued-property - org-entry-add-to-multivalued-property - org-entry-remove-from-multivalued-property - org-entry-member-in-multivalued-property described here: http://orgmode.org/manual/Using-t

Re: [O] [babel] How to set multiple variables with properties

2011-06-21 Thread Darlan Cavalcante Moreira
Thanks Eric, I'll minimize the need of this by using "#+babel: var=something" for variables that are common to many blocks. The tip with the table is a good one also. -- Darlan Cavalcante At Tue, 21 Jun 2011 13:17:17 -0700, Eric Schulte wrote: > > Unfortunately org-mode properties only allow

Re: [O] [babel] How to set multiple variables with properties

2011-06-21 Thread Christian Moe
Hi, Eric, Just curious: What about the org-entry--multivalued-property functions mentioned in "Using the properties API"? Is anybody using multivalued properties for anything? Yours, Christian On 6/21/11 10:17 PM, Eric Schulte wrote: Unfortunately org-mode properties only allow a single en

Re: [O] [babel] How to set multiple variables with properties

2011-06-21 Thread Eric Schulte
Hi Christian, That's the first I've heard of that variable? If you do get something working with multivalued properties please do share. Cheers -- Eric Christian Moe writes: > Hi, Eric, > > Just curious: What about the org-entry--multivalued-property functions > mentioned in "Using the proper

Re: [O] [babel] How to set multiple variables with properties

2011-06-21 Thread Eric Schulte
Unfortunately org-mode properties only allow a single entry for any given key, so you can only specify one variable using properties. However the following workaround does exist. *** alternative :PROPERTIES: :var: vars=variables :END: #+tblname: variables | var1 | 1 | | var2 | 2