From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: property with multiple values, or suggestions for a course planning system Date: Mon, 22 Jul 2013 09:57:39 +0200 Message-ID: <87bo5vyqks.fsf@gmail.com> References: <2033281615.7374702.1374471018405.JavaMail.root@jaguar7.sfu.ca> <2070547464.7395115.1374473025988.JavaMail.root@jaguar7.sfu.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1B0G-0006sT-GB for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 03:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1B0E-00074g-5A for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 03:57:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:44149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1B0D-00074T-UW for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 03:57:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V1B0A-00089b-K3 for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 09:57:50 +0200 Received: from e178189097.adsl.alicedsl.de ([85.178.189.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Jul 2013 09:57:50 +0200 Received: from tjolitz by e178189097.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Jul 2013 09:57:50 +0200 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 Kel Chan writes: Hi, > disclaimer: new to org and emacs. > > question: How can I associate more than one value to a property? > > I'm implementing a course planning tool b/c the one provided by my > university sucks. > > Ideally, each course offered is a second level heading with a property > "offering" with multiple possible values: fall, spring, odd spring, > even summer, etc. And similar to "offering", each heading also have > "prereq" and "designation" property. > > I would like to create a sparse-tree by searching for some property to > view a tree of courses and plan accordingly. The problem is that each > property can only have one value. > > Is property the best way to implement this system? If not, can you > suggest something else? There are multi-value properties in Org-mode and an API exists with related functions get, put, add, remove and member-in. ,------------------------------------------------------ | http://orgmode.org/manual/Using-the-property-API.html `------------------------------------------------------ So you should be able to have a property "offering" with more than one season, and build a sparse tree by checking if the season at hand is member in that property. -- cheers, Thorsten