[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] How to calculate sum of property in tree?
From: |
Rainer Hansen |
Subject: |
[O] How to calculate sum of property in tree? |
Date: |
Sat, 23 Apr 2016 11:22:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Hi,
I would like Emacs to calculate the price for the travel cost
(21.90). This should be calculated as sum of the values of the property
"Price" in the elements of the tree. How do I do that in Emacs Lisp?
----------------------------------------------
* Travel cost -- 21.90 EUR
** Train Eusirchen -- Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
:PROPERTIES:
:Price: 7.70
:END:
** Bus Euskirchen -- Stotzheim, src_emacs-lisp{(org-entry-get (point) "Price")}
EUR
:PROPERTIES:
:Price: 2.40
:END:
** Taxi Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
:PROPERTIES:
:Price: 11.80
:END:
----------------------------------------------
Thanks!
Rainer
- [O] How to calculate sum of property in tree?,
Rainer Hansen <=