From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sGLUE9U7Jl/SewAA0tVLHw (envelope-from ) for ; Sun, 02 Aug 2020 04:06:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4MiwD9U7Jl9ydAAA1q6Kng (envelope-from ) for ; Sun, 02 Aug 2020 04:06:45 +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 9B8549404CE for ; Sun, 2 Aug 2020 04:06:44 +0000 (UTC) Received: from localhost ([::1]:36858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k25Gl-0000l9-DH for larch@yhetil.org; Sun, 02 Aug 2020 00:06:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k25GO-0000kx-HS for emacs-orgmode@gnu.org; Sun, 02 Aug 2020 00:06:20 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:56016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k25GL-0005cb-Uo for emacs-orgmode@gnu.org; Sun, 02 Aug 2020 00:06:20 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 6B8557740A; Sun, 2 Aug 2020 00:06:15 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=QOcL864vdganIxCIMayf8EC1y+I=; b=L+u6uK MkUsxeUtsFrdpL6KEv9dHumStneAeTKv7IziTmO8ENXhU+UqUsEIIGYyXfk0JTDX xvl104EuzwEqyoIs9H+F6EmanMt5cXnp2l6Nmo1XVAOOguOlGo6OcOhrqUKNjgCQ /JfPehoTABMLyhhCcvcLWsTe7AbMtWCmB2EYs= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 6226B77409; Sun, 2 Aug 2020 00:06:15 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=VTfoq30wTMaM61afPQf4vRW7VB8Gp408GXqf/YoKh6Q=; b=OyVg7pR6GzHk8vmrHXz5NRiEmwcwQHGOeFk3hwdbDPoTKPNiKtJFW+V6/LYwPbn0iyIcjMe8ZcVVDlK1A3Z9eF/QRRsAUBMaxPz9H+Ie4wzbg4d/D06Q7A6iu3qzkUCo+xmxCk9RGza10DHvCrQxT1KVZKuRDiVz/elbrjrgEng= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id D093B77408; Sun, 2 Aug 2020 00:06:14 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Thomas Albers Subject: Re: org-checkbox-hierarchical-statistics not working as expected In-Reply-To: <87y2n2e2ys.fsf@gmail.com> References: <87y2n2e2ys.fsf@gmail.com> Date: Sun, 02 Aug 2020 00:06:13 -0400 Message-ID: <87wo2h4rpm.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 82304C2A-D475-11EA-B7D3-01D9BED8090B-24757444!pb-smtp1.pobox.com Received-SPF: pass client-ip=64.147.108.70; envelope-from=kyle@kyleam.com; helo=pb-smtp1.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/02 00:06:15 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=L+u6uK M; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=OyVg7pR6; 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.21 X-TUID: 4IR2/nlKGoWG Thomas Albers writes: > Footnote 2 in the chapter 5.6 talks about the > 'org-checkbox-hierarchical-statistics' variable, which I have set to > nil. But the top level header still does no show the count of checked off > items. > > I have also used the :COOKIE_DATA: property set to recursive with the > same results. > > What I would expect based on the documentation: > * Some header [1/2] > :PROPERTIES: > :COOKIE_DATA: recursive > :END: > ** Another header [1/2] > - [X] some item 1 > - [ ] some item 2 > > What I get: > * Some header [0/0] > :PROPERTIES: > :COOKIE_DATA: recursive > :END: > ** Another header [1/2] > - [X] some item 1 > - [ ] some item 2 > > Am I interpreting something wrong? My understanding is that org-checkbox-hierarchical-statistics isn't about counting boxes from children headings but instead about counting children checkboxes. For example, here's a count with the default value of t for org-checkbox-hierarchical-statistics: * h [0/2] - [-] a - [ ] a.1 - [X] a.2 - [-] b - [ ] b.1 - [X] b.2 With org-checkbox-hierarchical-statistics to nil, the count is instead * h [2/6] - [-] a - [ ] a.1 - [X] a.2 - [-] b - [ ] b.1 - [X] b.2