From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: mutually exclusive tags Date: Wed, 26 Mar 2008 16:50:41 -0400 Message-ID: <871w5xgqfy.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jeca8-0001XZ-Db for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 16:50:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jeca5-0001Vm-Gv for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 16:50:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jeca5-0001Vd-9g for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 16:50:45 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jeca4-0004j1-OJ for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 16:50:44 -0400 In-Reply-To: (Richard G. Riley's message of "Wed\, 26 Mar 2008 21\:26\:35 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard G Riley Cc: org-mode Richard G Riley writes: > Could someone show me an example of mutually exclusive tag setting in > elisp please? There is an example of non exclusive ones in the manual: > > (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop" > . ?l))) > > But how to do it for > > #+TAGS: { @work(w) @home(h) @tennisclub(t) } laptop(l) pc(p) > ? @work, @home, @errand are exclusive below. admin, org, notaproject, newtask are not. (setq org-tag-alist '((:startgroup . nil) ("@work" . ?w) ("@home" . ?h) ("@errand" . ?e) (:endgroup . nil) ("admin" . ?a) ("org" . ?o) ("notaproject" . ?n) ("newtask" . ?x))) HTH, Bernt