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 10:44:34 +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> <804nyfne7b.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6551eb2de8ea104b136047a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiET-0004xv-Pd for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:44:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNiEN-0007Xu-Uh for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:44:41 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:33929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiEN-0007Xj-N6 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:44:35 -0500 Received: by qadc11 with SMTP id c11so243950qad.0 for ; Tue, 08 Nov 2011 01:44:35 -0800 (PST) In-Reply-To: <804nyfne7b.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 --0016e6551eb2de8ea104b136047a Content-Type: text/plain; charset=ISO-8859-1 On Tue, Nov 8, 2011 at 10:41 AM, Sebastien Vauban < wxhgmqzgwmuf@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 > >> #+PROPERTY: var bar=2 > >> > >> results in '(("var" . "bar=2")) > >> > >> #+PROPERTY: var foo=1 > >> #+PROPERTY: var+ , bar=2 > >> > >> results in '(("var" . "foo=1, bar=2")) > >> > >> This way subtree properties could be used as well, e.g., > >> > >> #+PROPERTY: var foo=1 > >> > >> * subtree > >> :PROPERTIES: > >> :var+: bar=2 > >> :CUSTOM_ID: something > >> :END: > > > > I like that suggestion - it is clear, easy to understand, gives other > > advantages (you can "unset" variables in a subtree - which would be an > > added bonus) and does not require any large changes in org files. > > How do you unset a var? By resetting the list with a new var (without > `+'), > and adding all the other valid vars? If so, not really unsetting... You > simply void all vars, and create new definitions... > Exactly - with "unseting" var, I don't refer to unsetting a single variable, but all variables. But as we have the var+, what about a var- to unset a single variable? > > 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 --0016e6551eb2de8ea104b136047a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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

Rainer M Krug wrote:
>> The proposal is, when a property name ends in +, the value is appe= nded
>> to the corresponding property, rather than replacing it, so
>>
>> =A0#+PROPERTY: var =A0 foo=3D1
>> =A0#+PROPERTY: var =A0 bar=3D2
>>
>> results in '(("var" . "bar=3D2"))
>>
>> =A0#+PROPERTY: var =A0 =A0foo=3D1
>> =A0#+PROPERTY: var+ , bar=3D2
>>
>> results in '(("var" . "foo=3D1, bar=3D2"))=
>>
>> This way subtree properties could be used as well, e.g.,
>>
>> =A0#+PROPERTY: var foo=3D1
>>
>> =A0* subtree
>> =A0 =A0:PROPERTIES:
>> =A0 =A0:var+: bar=3D2
>> =A0 =A0:CUSTOM_ID: something
>> =A0 =A0:END:
>
> I like that suggestion - it is clear, easy to = understand, gives other
> advantages (you can "unset" variables in a subtree - which w= ould be an
> added bonus) and does not require any large changes in org files.

How do you unset a var? =A0By resetting the list with a new var (with= out `+'),
and adding all the other valid vars? =A0If so, not really unsetting... You<= br> simply void all vars, and create new definitions...
Exactly - with "unseting" var, I don't refer to unsetting a= single variable, but all variables.

But as we have the var+, what a= bout a var- to unset a single variable?
=A0

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

--0016e6551eb2de8ea104b136047a--