From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: About commit named "Allow multi-line properties to be specified in property blocks" Date: Tue, 08 Nov 2011 11:42:18 -0300 Message-ID: <4eb93fd2.035f650a.6940.7d55@mx.google.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> <87obwtgip9.fsf@gmail.com> <87sjm5ez0f.fsf@gmail.com> <4eb42564.059dec0a.5ffc.7ff5@mx.google.com> <877h3felm2.fsf@gmail.com> <87ty6ffuu6.fsf@gmail.com> <80d3d3neof.fsf@somewhere.org> <80aa87lyu9.fsf@somewhere.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNmsl-0002Ag-9z for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 09:42:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNmsg-00088Y-K8 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 09:42:35 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:51091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNmsg-000883-F1 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 09:42:30 -0500 Received: by gyg10 with SMTP id 10so737032gyg.0 for ; Tue, 08 Nov 2011 06:42:28 -0800 (PST) In-Reply-To: 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: Rainer M Krug Cc: Sebastien Vauban , emacs-orgmode@gnu.org 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 #+property: var foo=2 #+property: var+ foo=5 #+property: var+ bar="bar" should result in foo=5 and bar="bar". Is modifying a variable also a new feature? -- Darlan At Tue, 8 Nov 2011 11:06:48 +0100, Rainer M Krug wrote: > > [1 ] > On Tue, Nov 8, 2011 at 10:58 AM, Sebastien Vauban < > wxhgmqzgwmuf@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. > > >> Not intuitive at all. Quite hard to read. > > >> > > >> Can't the comma be implicitly added by the `+' after the property name? > > > > > > On the one hand, it might have one additional advantage: > > > > > > #+property: var foo="This is a very long text" > > > #+property: var+ "with even more." > > > > I don't think such a construction would be tolerated. I guess you must > > write > > a var name (foo, bar, baz, ...) after the `var+' keyword. > > > > > Would foo be: > > > "This is a very long text with even more" > > > > To be accurate, it would have become: > > > > "This is a very long textwith even more" > > > > if such a concatenation would be implied. > > > > Correct - missing space. > > > > > > > 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? > > > > (I know I exaggerate somehow, but just to show I guess such extensions are > > simply not possible without explicit types). > > > > > You definitely have a point here - so I opt for the implicit "," > > > Cheers, > > Rainer > > But, if not equal to 25, what would be expected? An error, ...? > > > > Best regards, > > Seb > > > > -- > > Sebastien Vauban > > > > > > > > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, > UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax (F): +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug > [2 ] >