emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Conditional summing in column-mode?


From: Nicolas Goaziou
Subject: Re: [O] Conditional summing in column-mode?
Date: Tue, 29 Aug 2017 09:11:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Stig Brautaset <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]