From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: colview min/mean/max Date: Thu, 21 May 2009 08:01:19 +0200 Message-ID: <8C863AC3-D6AB-4F2A-B52E-DF536F400F19@gmail.com> References: <87ab58owii.fsf@abc.se> <87ws8boqoy.fsf@abc.se> <87fxeziefz.fsf@abc.se> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M71LT-0004nZ-M8 for emacs-orgmode@gnu.org; Thu, 21 May 2009 02:01:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M71LP-0004jK-0z for emacs-orgmode@gnu.org; Thu, 21 May 2009 02:01:34 -0400 Received: from [199.232.76.173] (port=44363 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M71LO-0004j3-Gh for emacs-orgmode@gnu.org; Thu, 21 May 2009 02:01:30 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:33396) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M71LN-0002lq-O3 for emacs-orgmode@gnu.org; Thu, 21 May 2009 02:01:29 -0400 Received: by ewy6 with SMTP id 6so1082210ewy.42 for ; Wed, 20 May 2009 23:01:29 -0700 (PDT) In-Reply-To: <87fxeziefz.fsf@abc.se> 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: Mikael Fornius Cc: emacs-orgmode@gnu.org Hi Mikael, I have applied this patch, thank you for your contribution! - Carsten On May 21, 2009, at 12:42 AM, Mikael Fornius wrote: > > This is my suggestion of an implementation of min/mean/max computation > in columnview summaries. If you like it feel free to use it. > > New operators: {min}, {max} and {mean} possibly prefixed with : for > use > with timevalues. > > Example from my running exercise diary: > > #+COLUMNS: %DISTANCE{+;%.1f} %HEARTRATE{mean;%.1f} %SPEED{:min} > %CALORIES{+} > > Gives a colview with summaries: > > total distance, mean heartrate, fastest speed (min/km) and total > calories. > > I have tested it on emacs-23 and it works well for me now, also with > the > interactive colview functions. > > But you never know really. ;-) Anyway, there should not be any > emacs-23 > specific elisp code added afik. > > (Because I do not use xemacs I have not tested it with xemacs but the > small changes I made should be compitable to both xemacs and emacs. I > would appreciate if someone on this list who uses xemacs will give > it a > try for me. Thanks!) > > (This fix also opens up for using user defined lisp functions to > calculate colview summaries, but I am not sure if that is something > useful. Like this: > > (defun std (&rest values) > "Compute standard deviation." > ...) > > #+COLUMNS: %DATA{eval:std} > > If someone finds this attractive it would now be easy to implement > as well.) > > doc/org.texi | 6 +++ > lisp/org-colview-xemacs.el | 87 ++++++++++++++++++++++++ > +------------------- > lisp/org-colview.el | 87 ++++++++++++++++++++++++ > +------------------- > 3 files changed, 104 insertions(+), 76 deletions(-) > > I have attached four small patches, one for each file changed and the > last one for all changes. > > full.patch> > I hope this will be useful. > > > Org-mode is a great mode! > > -- > Mikael Fornius > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode