From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0WDiJS4N12LoyQAAbAwnHQ (envelope-from ) for ; Tue, 19 Jul 2022 21:59:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ICfqIy4N12ILjwAAG6o9tA (envelope-from ) for ; Tue, 19 Jul 2022 21:59:42 +0200 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 51C9018912 for ; Tue, 19 Jul 2022 21:59:42 +0200 (CEST) Received: from localhost ([::1]:39972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDtNd-0004MW-5l for larch@yhetil.org; Tue, 19 Jul 2022 15:59:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDtLx-0001rX-Fi for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 15:57:57 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:40799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDtLv-0003Mr-MV for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 15:57:57 -0400 Received: by mail-ed1-x534.google.com with SMTP id r6so21096911edd.7 for ; Tue, 19 Jul 2022 12:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ZVbixxV6G4ceYKP6dJcla/8z86XL0n9rptad0mN4CeU=; b=NK+/R/YWy7OARili9C2EXJzseD5vcO+C6esJJ9UeaCY/3oSeZ+mu35k5fSNXFRdjrv nVdBBoAFOlZz3yWIymloNb5XuPdxmhsv5MZgqxM9Z1EWRYD5DLwJP/DMkZ4JgMBYsabC 5JKmhyqTtztB58+baEAsHOZcz44WMe0K13PTuNqyarQE1LYx01mWcc9Yz6O1cuXDPcT0 J8KWaJpR5f5HYxSqsMnazT6ggi75AkuCgFLlPt8WG87iiUhIWsBJPeNa6bbqOM4vbIQh ZppK87e/IgPlOxNj0Prf5wL/ZKe+LLvAXcOL2ZQOMCmF5tF1VeM6xB6QFxQTLXWp20GY p0IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZVbixxV6G4ceYKP6dJcla/8z86XL0n9rptad0mN4CeU=; b=S6HNJTbDoqUalXb5QZERPOYYdXHaAgU2rbajaN5mcP6yEF+ZfF569EJ0UuzCXYOaAL nq4lIOoVBbp4c6x/t2kWC0ThBpRmeKupxjKSnF9Q4G5GEoaeyvHhV6WxYeY1XlhPtMp1 9YspwMhCc1+mclAg0sITpb4S50tHJBv/H6f/zb4Ddkcd3uE1100h4ndTm2EB84OLXG99 iHWRkjohIsE7vbWAUqIC7eWcYIfp6BdLc54AsSwFEy4KY+iONDEy2EmG2EvTPMhxJ+im h6CbGK6+sgeIcrof5uT1bahqpU+gd+mqk3woQumuIcB8lUWBZUDbeZ7G8W6k0EMNN00S JfAg== X-Gm-Message-State: AJIora/err0HlFcJCRiuuDncEkX+0RnMqfNto41cEMWHnHiUNJ7HLhgM WqM4B9rNBBJhruxHq7lKMPkuJKIJpv1DLmbDdPQK8mMHAI6x4A== X-Google-Smtp-Source: AGRyM1tC0nRc5vcVm7+neK8gdmqOJcZEcUi+v/7jjwOFDXVnM34GVYUig8Tx3fqqAt93vGqhJw8fxbuaAFBaYYvQbUU= X-Received: by 2002:aa7:c2d7:0:b0:43a:78af:6e57 with SMTP id m23-20020aa7c2d7000000b0043a78af6e57mr45618384edp.163.1658260672582; Tue, 19 Jul 2022 12:57:52 -0700 (PDT) MIME-Version: 1.0 From: Cletip Cletip Date: Tue, 19 Jul 2022 21:57:41 +0200 Message-ID: Subject: How to add/delete statistics cookie automatically ? To: Org Mode List Content-Type: multipart/alternative; boundary="0000000000005597ca05e42de6e2" Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=clement020302@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658260782; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZVbixxV6G4ceYKP6dJcla/8z86XL0n9rptad0mN4CeU=; b=Ulrb9cQu5rBDyKd39miQpKwnQ0pWJuNVY4NlbKfY/XriDapFI7M4xe2lzuJhbcf94X/LKE nWmex8PMn7u//xkskNVyHUC851y1MPFHOqu2/L1jvkNZbhoSsmOdfA8U2JxtALMqngRbzM TjUMLgdjvVmk+05Mxxw9ILPMCdJaqbKZJUMGyItm7F4/AmiAX6YC8w575pdC5rOXhxdxXB 4u13/e7GKK0XM/ULI3ukqbaJQgxvG18axOPxQ3aN/zoy8RuuTLY8nibpvXyR88Cy8ugjD8 lBBPkotZiJwgupPjaBvsy8C3q2NYyepTxgUCnUX9yPz+sdGotDm5J7gygXS3wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658260782; a=rsa-sha256; cv=none; b=RvsDUcPxvI/C3fxrRqinC1tOv0PWiAdSes8xTpVLPRB94X7cmgu99EgLsCmkkVKG5y/oUW /iUrqYRNFStIuvuLPF9FEv38AwSTpG3nmE170lqe2byCCupuIayOk+5vJUWOvGO5EpuAEy TcELtzyCBcLGDLRu5NRCwXkj6ZHkm9u2Jy56lW0FCh2AKyMiq/QcK0RtU58gSyDWXlIlqL 7nFJFtZGzpHoAUhyfz0PuHXeUo9yY27eebdOtsZ3hVmTOt+W5DHcTtw1BbO8HFTpJcxtW1 el/4rdw1fJX8v2sqETscgFSDs0N/KBP//tuEteAsKzbsDD7pH4yenvk3IMO0qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="NK+/R/YW"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="NK+/R/YW"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 51C9018912 X-Spam-Score: -7.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: KAQmyblE+uW4 --0000000000005597ca05e42de6e2 Content-Type: text/plain; charset="UTF-8" Hello everyone, My question is in the title, but for more detail on its exact use : I'd like to add [/] or [%] to a parent heading in case I either add a TODO subheading or a checkbox. I don't want to type it in the parent heading, but add it automatically. Also, if all subheadings/checkboxes are removed, the statistics cookie should be removed from the parent heading automatically. Question largely inspired by this one (which has not been answered): https://www.reddit.com/r/emacs/comments/g2arww/how_to_adddelete_statistics_cookie_automatically/ Maybe this question is answered quite simply by having a correct level in Lisp, but I still have a lot of trouble with this language. If someone could help me, it would help me a lot ^^. Thanks in advance for your future answers. --0000000000005597ca05e42de6e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello ev= eryone,
My question is in the title, but for more detail on its exact u= se :=E2=80=AF

I'd like to add=C2=A0[= /]=C2=A0or=C2=A0[%]=C2=A0to a parent heading in case I either add a TODO subhea= ding or a checkbox. I don't want to type it in the parent heading, but = add it automatically. Also, if all subheadings/checkboxes are removed, the = statistics cookie should be removed from the parent heading automatically.<= /span>

Question largely inspired by this one (which has not been ans= wered):
https://www.reddit.com/r/emacs= /comments/g2arww/how_to_adddelete_statistics_cookie_automatically/
<= br>Maybe this question is answered quite simply by having a correct level i= n Lisp, but I still have a lot of trouble with this language. If someone co= uld help me, it would help me a lot ^^.

Thanks in advance for your f= uture answers.

--0000000000005597ca05e42de6e2--