From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: Parser - which values are possible for `archivedp'? Date: Tue, 4 Mar 2014 09:51:51 -0500 Message-ID: References: <87ha7ekq0k.fsf@gmail.com> <87ha7edoag.fsf@gmail.com> <87a9d6koly.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113a5a9e9171bb04f3c90c53 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKqhZ-0001O8-Lo for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 09:52:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKqhY-00050b-Gc for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 09:52:13 -0500 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:41831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKqhY-00050T-Ay for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 09:52:12 -0500 Received: by mail-qa0-f50.google.com with SMTP id o15so3466375qap.23 for ; Tue, 04 Mar 2014 06:52:11 -0800 (PST) In-Reply-To: <87a9d6koly.fsf@gmail.com> 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: Thorsten Jolitz Cc: Org Mode Mailing List --001a113a5a9e9171bb04f3c90c53 Content-Type: text/plain; charset=UTF-8 Hello, On 4 March 2014 09:47, Thorsten Jolitz wrote: > Nick Dokos writes: > > > Thorsten Jolitz writes: > > > >> Hi List, > >> > >> the name of headline attribute `archivedp' suggests its just a boolean > >> nil/t variable, but in parse trees I see e.g. a list as value > >> > >> ,----------------------- > >> | :archivedp ("ARCHIVE") > >> `----------------------- > >> > >> and I vaguely remember that I have seen different symbols as values of > >> this attribute too. > >> > >> So what do I have to expect as values here? A list of strings or nil? Or > >> something else too? Whatever is defined in > >> > >> ,--------------------------------------------------- > >> | org-archive-tag is a variable defined in `org.el'. > >> | Its value is "ARCHIVE" > >> `--------------------------------------------------- > >> > >> ? > >> > >> PS > >> > >> If the tag is just a string like in this case, why is it shown as > >> list in the parse tree? > > > > It is set like this > > (let > > ... > > (archivedp (member org-archive-tag tags)) > > ...) > > > > in org-element.el. It is effectively a boolean, but there is no > > need to reduce the return value of ``member'' to t if it is non-nil: > > > > ,---- > > | member is a built-in function in `C source code'. > > | > > | (member ELT LIST) > > | > > | Return non-nil if ELT is an element of LIST. Comparison done with > > | equal'. > > `---- > > > > So if non-nil, it will be a list of tags, starting with the value of > > org-archive-tag. AFAICT, the rest of the tags can be arbitrary. > > > ** Second Level 2 :tag:my:ARCHIVE: > > > ,------------------------------------------------ > | :tags ("tag" "my") [...] :archivedp ("ARCHIVE") > `------------------------------------------------ > Change the order of the tags so that Archive comes before the others and you get: ** Second level 2 :ARCHIVE:tag:my: :tags ("tag" "my") :archivedp ("ARCHIVE" "tag" "my") Regards, Jon > -- > cheers, > Thorsten > > > --001a113a5a9e9171bb04f3c90c53 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

On 4 March 2014 09:47, Thorsten Jolitz &= lt;tjolitz@gmail.com= > wrote:
Nick= Dokos <ndokos@gmail.com> wri= tes:

> Thorsten Jolitz <tjolitz@gmail= .com> writes:
>
>> Hi List,
>>
>> the name of headline attribute `archivedp' suggests its just a= boolean
>> nil/t variable, but in parse trees I see e.g. a list as value
>>
>> ,-----------------------
>> | :archivedp ("ARCHIVE")
>> `-----------------------
>>
>> and I vaguely remember that I have seen different symbols as value= s of
>> this attribute too.
>>
>> So what do I have to expect as values here? A list of strings or n= il? Or
>> something else too? Whatever is defined in
>>
>> ,---------------------------------------------------
>> | org-archive-tag is a variable defined in `org.el'.
>> | Its value is "ARCHIVE"
>> `---------------------------------------------------
>>
>> ?
>>
>> PS
>>
>> If the tag is just a string like in this case, why is it shown as<= br> >> list in the parse tree?
>
> It is set like this
> =C2=A0 (let
> =C2=A0 =C2=A0...
> =C2=A0 =C2=A0(archivedp (member org-archive-tag tags))
> =C2=A0 =C2=A0...)
>
> in org-element.el. It is effectively a boolean, but there is no
> need to reduce the return value of ``member'' to t if it is no= n-nil:
>
> ,----
> | =C2=A0 =C2=A0member is a built-in function in `C source code'. > |
> | (member ELT LIST)
> |
> | Return non-nil if ELT is an element of LIST. =C2=A0Comparison done w= ith
> | equal'.
> `----
>
> So if non-nil, it will be a list of tags, starting with the value of > org-archive-tag. AFAICT, the rest of the tags can be arbitrary.


** Second Level 2 :tag:my:ARCHIVE:


,------------------------------------------------
| :tags ("tag" "my") [...] :archivedp ("ARCHIVE&qu= ot;)
`------------------------------------------------

Change the order of the tags so that Archi= ve comes before the others and you get:

** Second level 2= :ARCHIVE:tag:my:
:tags ("tag" "my") :arc= hivedp ("ARCHIVE" "tag" "my")

Regards,
Jon
=C2=A0
--
cheers,
Thorsten



--001a113a5a9e9171bb04f3c90c53--