From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GNMCEs4C1V65GAAA0tVLHw (envelope-from ) for ; Mon, 01 Jun 2020 13:29:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CCMcDs4C1V5YQgAAB5/wlQ (envelope-from ) for ; Mon, 01 Jun 2020 13:29:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 784DA9400EF for ; Mon, 1 Jun 2020 13:29:49 +0000 (UTC) Received: from localhost ([::1]:33584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfkVf-0005Yf-7j for larch@yhetil.org; Mon, 01 Jun 2020 09:29:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfkVL-0005YS-PU for emacs-orgmode@gnu.org; Mon, 01 Jun 2020 09:29:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48673) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfkVL-0005Vi-GP; Mon, 01 Jun 2020 09:29:27 -0400 Received: from [2a01:e35:2fe1:f780:a886:3d11:7807:868b] (port=37054 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jfkVK-0007lR-DC; Mon, 01 Jun 2020 09:29:26 -0400 Received: by guerry (Postfix, from userid 1000) id 85D051A603C1; Mon, 1 Jun 2020 15:29:23 +0200 (CEST) From: Bastien To: Michael Brand Subject: Re: Statistic cookies for headings and list items Organization: GNU References: X-Woof-Bug: confirmed Date: Mon, 01 Jun 2020 15:29:23 +0200 Message-ID: <87zh9mzzgs.fsf@bzg.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: uhqzFtLwj6Qq Hi Michael, thanks for reporting this. Michael Brand writes: > Is this all intended behaviour? Well, no, I think the current behavior is confusing. > When I start with ~C-c C-c~ on [ of line A, Org seems to count list items: > Then ~S-~ on line D seems to count subheadings: > Then ~C-c C-c~ on [ of line A seems to count list items again: > Then ~C-c -~ on line D makes D a subitem which makes no sense to me: > But when I start with this: > Then ~C-c -~ on line D makes D a sibling which I prefer to the above: > Except that the automatic update like ~C-c C-c~ on [ of line A is missing: I believe we cannot fix this without a discussion on the design first. 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? -- Bastien