emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Statistic cookies for headings and list items


From: Nicolas Goaziou
Subject: Re: Statistic cookies for headings and list items
Date: Sat, 13 Jun 2020 18:15:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

Bastien <bzg@gnu.org> writes:

> Here are a few solutions I can imagine:
>
> 1. when an entry contains both a list (as its direct contents) and
>    subheadings, only consider subheadings in the stats calculation.
>
> 2. when an entry contains both a list (as its direct contents) and
>    subheadings, only consider the list in the calculation.
>
> 3. if one of the two options above, allow the user to use a custom
>    property to change the default (e.g. CUSTOM_STATS: list/headings)
>    and consider the list of the subheadings.
>
> 4. add a new syntax rule to consider that stats at the beginning of 
>    a headline are always for subheadings, while stats at the end of 
>    a headline are always for the first list in direct contents.
>
> I'd be in favor of (1) (without (3)) to keep things simple, but 
> maybe that's a good opportunity to consider (4).  I think (3) is
> only relevant if we go for (2), which I don't really like.
>
> What do you think?

Isn't COOKIE_DATA property there to disambiguate this situation?

Regards,
-- 
Nicolas Goaziou



reply via email to

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