From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: About commit named "Allow multi-line properties to be specified in property blocks" Date: Tue, 08 Nov 2011 09:03:25 -0700 Message-ID: <87sjlyeh41.fsf@gmail.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 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNnDM-0002v0-Sf for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 10:03:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNnDH-0004hO-4X for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 10:03:52 -0500 Received: from mail-qy0-f176.google.com ([209.85.216.176]:41771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNnDG-0004hI-Rr for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 10:03:46 -0500 Received: by qyk29 with SMTP id 29so784852qyk.0 for ; Tue, 08 Nov 2011 07:03:46 -0800 (PST) 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 >> >> > 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 #+PROPERTY: var foo=2 #+PROPERTY: var+ 5 #+begin_src emacs-lisp foo #+end_src #+results: : 25 >> >> (I know I exaggerate somehow, but just to show I guess such >> extensions are simply not possible without explicit types). >> I think by types you mean something more like syntactic parsing? Babel does have three types, strings, numbers, and lists. >> >> > You definitely have a point here - so I opt for the implicit "," > Keep in mind that the above applies to *all* Org-mode properties, not just variables, which is why I did not want to force an assumed comma separator. For example, #+PROPERTY: Disks 1 2 3 4 5 6 7 #+PROPERTY: Disks+ 8 9 10 11 12 13 #+begin_src emacs-lisp org-file-properties #+end_src #+results: | (var . foo=25) | (Disks . 1 2 3 4 5 6 78 9 10 11 12 13) | Although in this case the 78 is certainly unexpected. 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 this seems like a good way to go I can try to update my previous patch. Thanks -- Eric > > > Cheers, > > Rainer > > But, if not equal to 25, what would be expected? An error, ...? >> >> Best regards, >> Seb >> >> -- >> Sebastien Vauban >> >> >> -- Eric Schulte http://cs.unm.edu/~eschulte/