From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Stig Brautaset <stig@brautaset.org>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Conditional summing in column-mode?
Date: Tue, 29 Aug 2017 09:11:06 +0200 [thread overview]
Message-ID: <87tw0qrgqd.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m21snwt1oi.fsf@brautaset.org> (Stig Brautaset's message of "Mon, 28 Aug 2017 11:41:01 +0100")
Hello,
Stig Brautaset <stig@brautaset.org> writes:
> Unfortunately it doesn't quite: the functions in
> =org-columns-summary-types= are passed a list of values already
> extracted from the properties, so my calculation of "confirmed days"
> only takes effect on the _next_ call to the summary function.
You can ignore the provided values, collect your own and summarize
those. Granted, this is sub-optimal.
> Is there a hook I can use that is called before the property values
> are extracted? (I wasn't able to find one.)
There isn't.
But here is an idea: `org-columns-summary-types' could also accept
entries like:
(LABEL SUMMARIZE COLLECT)
where COLLECT is a function called on each summarized entry. SUMMARIZE
is applied on the values returned by COLLECT. When not provided, COLLECT
default to `org-entry-get' as it is the case already.
WDYT?
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2017-08-29 7:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 15:49 Conditional summing in column-mode? Stig Brautaset
2017-08-25 7:55 ` Nicolas Goaziou
2017-08-25 17:10 ` Stig Brautaset
2017-08-25 19:55 ` Nicolas Goaziou
2017-08-28 10:41 ` Stig Brautaset
2017-08-29 7:11 ` Nicolas Goaziou [this message]
2017-09-01 0:07 ` Stig Brautaset
2017-09-01 21:29 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tw0qrgqd.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=stig@brautaset.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.