From: Carsten Dominik <carsten.dominik@gmail.com>
To: Mikael Fornius <mfo@abc.se>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: colview min/mean/max
Date: Thu, 21 May 2009 08:01:19 +0200 [thread overview]
Message-ID: <8C863AC3-D6AB-4F2A-B52E-DF536F400F19@gmail.com> (raw)
In-Reply-To: <87fxeziefz.fsf@abc.se>
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.
>
> <colview.patch><colview-xemacs.patch><org-texi.patch><colview-
> 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
next prev parent reply other threads:[~2009-05-21 6:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 11:15 colview min/mean/max Mikael Fornius
2009-05-20 13:21 ` Mikael Fornius
2009-05-20 13:47 ` Carsten Dominik
2009-05-20 22:42 ` Mikael Fornius
2009-05-21 6:01 ` Carsten Dominik [this message]
2009-05-21 7:23 ` Mikael Fornius
2009-05-21 8:48 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8C863AC3-D6AB-4F2A-B52E-DF536F400F19@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mfo@abc.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).