From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: About commit named "Allow multi-line properties to be specified in property blocks" Date: Tue, 8 Nov 2011 11:06:48 +0100 Message-ID: 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: multipart/alternative; boundary=0016e64f81da57763d04b1365470 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiZu-00052A-I3 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 05:06:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNiZt-00041c-2e for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 05:06:50 -0500 Received: from mail-qy0-f176.google.com ([209.85.216.176]:46232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiZs-00041Y-Rx for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 05:06:49 -0500 Received: by qyk29 with SMTP id 29so398915qyk.0 for ; Tue, 08 Nov 2011 02:06:48 -0800 (PST) In-Reply-To: <80aa87lyu9.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org --0016e64f81da57763d04b1365470 Content-Type: text/plain; charset=ISO-8859-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 --0016e64f81da57763d04b1365470 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Nov 8, 2011 at 10:58 AM, Sebasti= en Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
Hi Rainer,

Rainer M Krug wrote:
>> > * appending to a file-wide property >> > =A0 :PROPERTIES:
>> > =A0 :var+: =A0 =A0 =A0, baz=3D3
>> > =A0 :END:
>>
>> To be honest, the only thing that I dislike is the comma in the ab= ove line.
>> Not intuitive at all. Quite hard to read.
>>
>> Can't the comma be implicitly added by the `+' after the p= roperty name?
>
> On the one hand, it might have one additional advantage:
>
> =A0 #+property: var =A0 foo=3D"This is a very long text"
> =A0 #+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:

=A0"This is a very long textwith even more"

if such a concatenation would be implied.

Correct = - missing space.
=A0

> Could one make the "," implicit, if the value follows the >
> x=3Dy
>
> style, while otherwise just concatenate the value to the one before?
I guess this is going too far, as Babel is untyped: what about...

=A0 =A0#+property: var =A0 foo=3D2
=A0 =A0#+property: var+ =A05

Does foo become equal to 25?

(I know I exaggerate somehow, but just to show I guess such extensions are<= br> simply not possible without explicit types).


You definitely have a point here - so I opt for t= he implicit ","

=A0
Cheers,

Rainer

=
But, if not equal to 25, what would be expected? =A0An error, ...?

Best regards,
=A0Seb

--
Sebastien Vauban





--
Rainer M. K= rug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl= . Phys. (Germany)

Centre of Excellence for Invasion Biology
Stell= enbosch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44
Cell: =A0 = =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 =A0 =A0 +33 - (0)9 58 10 27 = 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44

email: =A0 =A0 = =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0RMkrug

--0016e64f81da57763d04b1365470--