From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Mileage Date: Fri, 4 Apr 2008 11:20:09 -0500 Message-ID: <20080404162009.GB27103@odin.demosthenes.org> 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 1JhoeH-0007uO-PR for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:20:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhoeF-0007tH-RP for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:20:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhoeF-0007tA-Jw for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:20:15 -0400 Received: from squirtle.drak.net ([72.52.144.201]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JhoeF-0007p5-Io for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:20:15 -0400 Received: from [206.180.154.177] (helo=localhost) by squirtle.drak.net with esmtpa (Exim 4.68) (envelope-from ) id 1Jhoe5-0006k5-9d for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 11:20:05 -0500 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 So I discussed this briefly on IRC, but how are others handling mileage reporting? Its very similar to clocking time, and fits neatly into the property drawer. Here's a sample of what I started, I'm just concerned about how to get the delta and a summary. ** DONE Meeting Downtown CLOSED: [2008-04-02 Wed 22:55] :PROPERTIES: :MILES_START: 50375 :MILES_END: 50417 :END: I wrote a short piece of code I can eval to see the delta on the current item: (- (string-to-number (org-entry-get (point) '"MILES_END")) (string-to-number (org-entry-get (point) '"MILES_START")) ) My question has to do with scale, how could this be made to auto update across all headings? Column view already allows me a nice summary view, though I may have to sort out the date range to review. Suggestions? Thanks! ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3