From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: property constants in elisp formulas Date: Thu, 18 Oct 2007 17:06:09 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IidVN-0004rf-BZ for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 18:06:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IidVM-0004r1-5S for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 18:06:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IidVL-0004qq-VE for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 18:06:11 -0400 Received: from fk-out-0910.google.com ([209.85.128.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IidVL-0001Wi-Nd for emacs-orgmode@gnu.org; Thu, 18 Oct 2007 18:06:11 -0400 Received: by fk-out-0910.google.com with SMTP id 19so338182fkr for ; Thu, 18 Oct 2007 15:06:09 -0700 (PDT) Content-Disposition: inline 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: org-mode list Hi, Is there a better way to do this? ===== sample file ===== * top :PROPERTIES: :d_5: 0 :h_5: 8 :m_5: 16 :d_4: 2 :h_4: 18 :m_4: 58 :d_3: 6 :h_3: 11 :m_3: 33 :d_2: 3 :h_2: 13 :m_2: 36 :d_1: 0 :h_1: 13 :m_1: 59 :d_0: 0 :h_0: 6 :m_0: 23 :d_n: 17 :h_n: 8 :m_n: 59 :END: *** test | | day | hour | minute | |---+-----+------+--------| | # | 0 | 8 | 16 | | # | 2 | 18 | 58 | | # | 6 | 11 | 33 | | # | 3 | 13 | 36 | | # | 0 | 13 | 59 | | # | 0 | 6 | 23 | | # | 17 | 8 | 59 | #+TBLFM: @2$2='(car '$PROP_d_5)::@2$3='(car '$PROP_h_5)::@2$4='(car '$PROP_m_5)::@3$2='(car '$PROP_d_4)::@3$3='(car '$PROP_h_4)::@3$4='(car '$PROP_m_4)::@4$2='(car '$PROP_d_3)::@4$3='(car '$PROP_h_3)::@4$4='(car '$PROP_m_3)::@5$2='(car '$PROP_d_2)::@5$3='(car '$PROP_h_2)::@5$4='(car '$PROP_m_2)::@6$2='(car '$PROP_d_1)::@6$3='(car '$PROP_h_1)::@6$4='(car '$PROP_m_1)::@7$2='(car '$PROP_d_0)::@7$3='(car '$PROP_h_0)::@7$4='(car '$PROP_m_0)::@8$2='(car '$PROP_d_n)::@8$3='(car '$PROP_h_n)::@8$4='(car '$PROP_m_n) ==================== Specifically, is there a better way to get at a property constant with an elisp formula? It seems the value is automatically put in parens such that $h_3 is (11) which is a little awkward. On the other hand, maybe I can use that to store a list in a property. Edd