From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Parser - which values are possible for `archivedp'? Date: Tue, 04 Mar 2014 10:44:52 -0500 Message-ID: <87y50q55or.fsf@alphaville.bos.redhat.com> References: <87ha7ekq0k.fsf@gmail.com> <87ha7edoag.fsf@gmail.com> <87a9d6koly.fsf@gmail.com> <871tyiko2w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKrWp-0004Ph-HT for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 10:45:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKrWi-0006b4-7d for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 10:45:11 -0500 Received: from plane.gmane.org ([80.91.229.3]:49375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKrWi-0006Zr-1Q for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 10:45:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WKrWh-00055y-5J for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 16:45:03 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Mar 2014 16:45:03 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Mar 2014 16:45:03 +0100 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: emacs-orgmode@gnu.org Thorsten Jolitz writes: >> > 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") > > A very useful feature of the `member' function in lisp programming, but > not that great in this case I would say ... why not use (car (member ...))? > Then its just a string, and the single value of interest. Why? All that matters is whether it's nil or not. Nick