Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-15 Thread Rainer M Krug
Is that patch on git yet? i.e. if can I switch back to HEAD and change my files accordingly? Cheers, Rainer On Wed, Nov 9, 2011 at 11:31 PM, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Eric, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: On Tue, Nov 8, 2011

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-15 Thread Eric Schulte
Torsten Wagner torsten.wag...@gmail.com writes: Hi, Eric I lost a bit track of what was the final decsion. Guess a good way to get back on track would be helping with the documentary. Any tasks to do? Tom has handled the documentation (thanks Tom!) so he would know better than I if there

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-15 Thread Thomas S. Dye
Aloha Torsten, Let me clean up some loose ends in the documentation of standardized keywords in org.texi later today. Eric moves more quickly than I do and the documentation is in a working draft stage, definitely not ready for consumption and use. I didn't get around to documenting the ability

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-15 Thread Rainer M Krug
On Tue, Nov 15, 2011 at 5:00 PM, Eric Schulte schulte.e...@gmail.comwrote: Rainer M Krug r.m.k...@gmail.com writes: Is that patch on git yet? i.e. if can I switch back to HEAD and change my files accordingly? Hi Rainer, I've must merged all of the pending code block changes into the

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-15 Thread Eric Schulte
The cleaning up documentation patch has now been applied. Best -- Eric t...@tsdye.com (Thomas S. Dye) writes: Aloha Torsten, Let me clean up some loose ends in the documentation of standardized keywords in org.texi later today. Eric moves more quickly than I do and the documentation is in

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-09 Thread Rainer M Krug
On Tue, Nov 8, 2011 at 11:53 PM, Eric Schulte schulte.e...@gmail.comwrote: Perhaps inserting an assumed space separator would be more intuitive? If we were to go that way it may be possible to allow variable specifications such as #+PROPERTY: var foo=1 bar=2 in which case properties

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-09 Thread Eric Schulte
Rainer M Krug r.m.k...@gmail.com writes: On Tue, Nov 8, 2011 at 11:53 PM, Eric Schulte schulte.e...@gmail.comwrote: Perhaps inserting an assumed space separator would be more intuitive? If we were to go that way it may be possible to allow variable specifications such as #+PROPERTY:

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-09 Thread Rainer M Krug
On Wed, Nov 9, 2011 at 5:12 PM, Eric Schulte schulte.e...@gmail.com wrote: Rainer M Krug r.m.k...@gmail.com writes: On Tue, Nov 8, 2011 at 11:53 PM, Eric Schulte schulte.e...@gmail.com wrote: Perhaps inserting an assumed space separator would be more intuitive? If we were to go that

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-09 Thread Samuel Wales
Hi Eric, On 2011-11-03, Eric Schulte schulte.e...@gmail.com wrote: But allowing a top-level :PROPERTIES: drawer with properties whose scope is the entire file looks like a good idea to me. I don't see what this would add, how would this solve the need for multi-line properties, and how

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-09 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: On Tue, Nov 8, 2011 at 11:53 PM, Eric Schulte schulte.e...@gmail.comwrote: Perhaps inserting an assumed space separator would be more intuitive? If we were to go that way it may be possible to allow variable

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Rainer M Krug
On Mon, Nov 7, 2011 at 11:09 PM, Eric Schulte schulte.e...@gmail.comwrote: The attached patch implements this latest propname+ suggestion. When applied it results in the behavior shown below. I'm inclined to go with this as a solution moving forward. Thoughts? Go for it - looks like a

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Sebastien Vauban
Hi Eric, (Due to a high buzyness level, I've been a bit out of the discussion for one week or so) Eric Schulte wrote: The attached patch implements this latest propname+ suggestion. When applied it results in the behavior shown below. I'm inclined to go with this as a solution moving

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Rainer M Krug
On Tue, Nov 8, 2011 at 10:31 AM, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Eric, (Due to a high buzyness level, I've been a bit out of the discussion for one week or so) Eric Schulte wrote: The attached patch implements this latest propname+ suggestion. When applied it

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Sebastien Vauban
Hi Rainer, Rainer M Krug wrote: The proposal is, when a property name ends in +, the value is appended to the corresponding property, rather than replacing it, so #+PROPERTY: var foo=1 #+PROPERTY: var bar=2 results in '((var . bar=2)) #+PROPERTY: varfoo=1 #+PROPERTY: var+ ,

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Rainer M Krug
On Tue, Nov 8, 2011 at 10:41 AM, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Rainer, Rainer M Krug wrote: The proposal is, when a property name ends in +, the value is appended to the corresponding property, rather than replacing it, so #+PROPERTY: var foo=1

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Sebastien Vauban
Hi Rainer, Rainer M Krug wrote: * appending to a file-wide property :PROPERTIES: :var+: , baz=3 :END: To be honest, the only thing that I dislike is the comma in the above line. Not intuitive at all. Quite hard to read. Can't the comma be implicitly added by the `+' after

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Rainer M Krug
On Tue, Nov 8, 2011 at 10:58 AM, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Rainer, Rainer M Krug wrote: * appending to a file-wide property :PROPERTIES: :var+: , baz=3 :END: To be honest, the only thing that I dislike is the comma in the above line.

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Darlan Cavalcante Moreira
Unless I have missed something in the e-mails, the new syntax is to concatenate new variables to the var property. Not modifying the values currently stored in some variable. That is, #+property: var foo=2 #+property: var+ 5 (not specifying the variable name ) should not be allowed and

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Eric Schulte
How do you unset a var? By resetting the list with a new var (without `+'), See, the example in my original email, a property with var (no +) wipes out any previously existing var properties. and adding all the other valid vars? If so, not really unsetting... You simply void all vars,

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Eric Schulte
Could one make the , implicit, if the value follows the x=y style, while otherwise just concatenate the value to the one before? I guess this is going too far, as Babel is untyped: what about... #+property: var foo=2 #+property: var+ 5 Does foo become equal to 25? yes

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Sebastien Vauban
Hi Darlan, Darlan Cavalcante Moreira wrote: Unless I have missed something in the e-mails, the new syntax is to concatenate new variables to the var property. Not modifying the values currently stored in some variable. That is, #+property: var foo=2 #+property: var+ 5 (not specifying

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-08 Thread Eric Schulte
Perhaps inserting an assumed space separator would be more intuitive? If we were to go that way it may be possible to allow variable specifications such as #+PROPERTY: var foo=1 bar=2 in which case properties could be easily specified on multiple lines using a default space separator. If

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-07 Thread Eric Schulte
The attached patch implements this latest propname+ suggestion. When applied it results in the behavior shown below. I'm inclined to go with this as a solution moving forward. Thoughts? #+property: varfoo=1 #+property: var+ , bar=2 #+begin_src emacs-lisp (+ foo bar) #+end_src

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-04 Thread Rainer M Krug
On Thu, Nov 3, 2011 at 9:23 PM, Eric Schulte schulte.e...@gmail.com wrote: One more idea that has occurred to me, it should give all of the functionality which we desire (i.e., the ability for a property value to span multiple lines and to be accumulated at the subtree level), and it should

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-04 Thread Darlan Cavalcante Moreira
I liked this suggestion. In a sense, it is similar to the inherit keyword I had suggested before, but now the keyword (the plus sign) is part of the variable name. But the reason I really liked it is because it is clear to understand. One can compare it to the += operator some languages have.

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-04 Thread Eric Schulte
Darlan Cavalcante Moreira darc...@gmail.com writes: I liked this suggestion. In a sense, it is similar to the inherit keyword I had suggested before, but now the keyword (the plus sign) is part of the variable name. Oh yes, I didn't realize that when I first posted this suggestion but it is

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Christian Moe
On 11/3/11 2:26 AM, Bastien wrote: Hi Nicolas, Nicolas Goazioun.goaz...@gmail.com 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

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Christian Moe
On 11/3/11 2:42 AM, Bastien wrote: But allowing a top-level :PROPERTIES: drawer with properties whose scope is the entire file looks like a good idea to me. How other would feel about this? Not sure if this is already clear, but just in case: The functionality is already there. PROPERTY

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Nick Dokos
Christian Moe m...@christianmoe.com wrote: On 11/3/11 2:26 AM, Bastien wrote: Hi Nicolas, Nicolas Goazioun.goaz...@gmail.com writes: (...) There is also #+bind:, whose purpose is close enough. Indeed. Eric, would it be possible to use #+bind foo 1 instead of #+property

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Eric Schulte
I don't understand why the `org-accumulated-properties-alist' solution seems like a hack, could someone elaborate. To me that still feels like the most natural solution. more below... 2) Cumulative properties? Here is a suggestion: use a syntaxe like #+var: foo 1 There is also

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Eric Schulte
But allowing a top-level :PROPERTIES: drawer with properties whose scope is the entire file looks like a good idea to me. I don't see what this would add, how would this solve the need for multi-line properties, and how would it differ from IMO being uglier than a series of #+PROPERTY: lines.

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Eric Schulte
While I still think `org-accumulated-properties-alist' is the most powerful solution -- as it is the only solution which allows a subtree property block to extend rather than overwrite a file-wide property. I've been thinking a little bit more about these issues and I'm returning to a previous

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Nicolas Goaziou
Eric Schulte schulte.e...@gmail.com writes: On the contrary, creating a block for each keyword would mean a lot of new syntax. We currently have 8 types of blocks (not counting dynamic blocks, whose syntax is a bit different), all requiring to be parsed differently: 1. Center blocks,

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Eric Schulte
One more idea that has occurred to me, it should give all of the functionality which we desire (i.e., the ability for a property value to span multiple lines and to be accumulated at the subtree level), and it should require *no* new syntax. The only problem is it puts a limitation on possible

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-03 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: On the contrary, creating a block for each keyword would mean a lot of new syntax. We currently have 8 types of blocks (not counting dynamic blocks, whose syntax is a bit different), all requiring to be

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-02 Thread Bastien
Dear all, here is my take on this issue. First of all, sorry that the #+begin_property caused confusion, I'm the one responsible as I suggested this suggestion to Eric. I can see three issues: 1) Consistent syntax for #+xxx and #+begin_xxx? Nicolas point is valid -- #+begin_xxx syntax is

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-02 Thread Nicolas Goaziou
Hello, Bastien b...@altern.org writes: 1) Consistent syntax for #+xxx and #+begin_xxx? Nicolas point is valid -- #+begin_xxx syntax is about content and formatting, not about Org's internal. #+xxx is mostly about Org's internals (#+author, #+date, #+property, etc) and sometimes

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-02 Thread Samuel Wales
Something that has not been mentioned yet, as a possible background. One nice thing about subtrees (the properties drawer) for control is that they are nicely (essentially lexically) scoped and nested as in many programming languages. One issue with blocks for control is that they are

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-02 Thread Samuel Wales
A followup on my second point. On 2011-11-02, Samuel Wales samolog...@gmail.com wrote: === One interesting possibility is to have a dedicated top-level entry for all file-level control purposes. Then it's clear where everything should go, and syntax can even follow the subtree syntax.

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-02 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: For the sake of consistency, I would suggest to drop the export back-end relative keywords. #+html: and #+latex: are indeed disturbing exceptions to the rule. They are also not so convenient (a net gain of 2 lines). Why not. But let's

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-02 Thread Bastien
Dear Samuel, I like the way you frame the issue and the solution you are sketching. I am not fund of a dedicated top-level entry for all file-level control purposes because it transforms the ambiguity about keywords' scope into an ambiguity about structure: IMHO a subtree should never be

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Christian Moe
On 10/31/11 10:36 PM, Eric Schulte wrote: 4. My own idea of allowing any defined property to be passed as an argument to src blocks (which would require some changes to how Babel reads its :var header args). I do see how this approach could be powerful, however I fear both the size of the

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Nicolas Goaziou
Hello, Eric Schulte schulte.e...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: Well, what about: #+property: :var foo=1 #+property: :var bar=2 #+property: :var baz=3 #+property: :var qux=4 Unfortunately this won't work, the final value of the var property will be qux=4

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Nicolas Goaziou
Correcting myself, Typically, what is required here is to add #+property: to the cumulative family. Thus, #+property: var foo=1 #+property: var bar=2 is exactly the same as #+property: var foo=1 var bar=2. Also, make sure var assignations accumulate too. I don't think #+property: should

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Correcting myself, Typically, what is required here is to add #+property: to the cumulative family. Thus, #+property: var foo=1 #+property: var bar=2 is exactly the same as #+property: var foo=1 var bar=2. Also, make sure var assignations

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Nicolas Goaziou
Eric Schulte schulte.e...@gmail.com writes: This was one of the proposed options to solve this problem, namely introduce a list of properties whose value accumulates rather than is replaced. Since the property list data structure only allows each key to appear once, the accumulation would

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: This was one of the proposed options to solve this problem, namely introduce a list of properties whose value accumulates rather than is replaced. Since the property list data structure only allows each

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Christian Moe
On 11/1/11 5:58 PM, Eric Schulte wrote: so assuming var is an accumulating property, then #+property: var foo=1 #+property: var bar=2 would result in `org-file-properties' having the following value ((var . foo=1 bar=1)) Given this: --- #+property: var foo=1 #+property: var bar=2 *

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Eric Schulte
Christian Moe m...@christianmoe.com writes: On 11/1/11 5:58 PM, Eric Schulte wrote: so assuming var is an accumulating property, then #+property: var foo=1 #+property: var bar=2 would result in `org-file-properties' having the following value ((var . foo=1 bar=1)) Given this:

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Christian Moe
On 11/1/11 8:02 PM, Eric Schulte wrote: As for variable handling, I think the solution is to ensure that on the code-block side of things, a var string like foo=3, bar=2, foo=1 results in, foo=1 bar=2 that is, subtree variable definitions will pre-empty earlier definitions of the same

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-11-01 Thread Eric Schulte
Christian Moe m...@christianmoe.com writes: On 11/1/11 8:02 PM, Eric Schulte wrote: As for variable handling, I think the solution is to ensure that on the code-block side of things, a var string like foo=3, bar=2, foo=1 results in, foo=1 bar=2 that is, subtree variable definitions will

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-10-31 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, I just noticed that commit (8354fd9e0f5fff04665b2272fff6376b15ec0225). Could we talk about it before pushing it, a few days before the release? I am a bit worried about the new block types being introduced recently. Some may be justified,

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-10-31 Thread Nicolas Goaziou
Eric Schulte schulte.e...@gmail.com writes: The only problem with a single #+PROPERTY: line is that this line could become unreadably long. By allowing such an entry to span multiple lines it becomes feasible to chain together many variables into a single property. Another approach which is

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-10-31 Thread Christian Moe
Hi, Having followed the thread on Babel and properties after the removal of the #+BABEL headers, I understand the motivation for introducing this. But I share Nicolas' feelings that a property block doesn't rhyme with existing usage of blocks and properties. There were many other ideas

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-10-31 Thread Christian Moe
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

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-10-31 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: The only problem with a single #+PROPERTY: line is that this line could become unreadably long. By allowing such an entry to span multiple lines it becomes feasible to chain together many variables into

Re: [O] About commit named Allow multi-line properties to be specified in property blocks

2011-10-31 Thread Eric Schulte
4. My own idea of allowing any defined property to be passed as an argument to src blocks (which would require some changes to how Babel reads its :var header args). I do see how this approach could be powerful, however I fear both the size of the change and the potential negative