From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eOsIAhvg62JvewAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 17:04:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UNQGAhvg62KB9QAA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 17:04:59 +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 B3838A351 for ; Thu, 4 Aug 2022 17:04:58 +0200 (CEST) Received: from localhost ([::1]:38576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJcPB-0005Vd-Pa for larch@yhetil.org; Thu, 04 Aug 2022 11:04:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJcMI-0004Bh-Am for emacs-orgmode@gnu.org; Thu, 04 Aug 2022 11:01:58 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:36682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJcMG-0003wu-Pq for emacs-orgmode@gnu.org; Thu, 04 Aug 2022 11:01:58 -0400 Received: by mail-pj1-x1034.google.com with SMTP id 15-20020a17090a098f00b001f305b453feso5573666pjo.1 for ; Thu, 04 Aug 2022 08:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=5YIdMwBbQ+c69/5Un63oU5f6xRtt+VJqK6Kh5ddlRUk=; b=M6hnQtPq0aoFgvPmiHMLSsXydoMfM1OHoUWP3Q6UutlHtb3DEMp2RbNR6PfVwKkJqW 0vhvFBnZZf5K+51M6tYXZitXfLBHCisJcDaxKva1aN2GIeaeD7lgP9LsVsSUqEwMQzRR ACvk5Gd453+MWck5tmbsKm9t+ZqApy4E1Zd9gTorv04Q8+bNYNhFqMeEbAJMwUZanIR5 j2mZGc2nUjbqpXdaGzlG4DzHjRkv1c2djVx3wM6fOaFO+vAcFobcwxzyT/FdHXFD5k7s vxZdC4kFY2sXcmtzQ4gJsDWWSoFEVoX531orrXFnFr7mOb4489hqNMoVW0RZa8wEs9y8 9D0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=5YIdMwBbQ+c69/5Un63oU5f6xRtt+VJqK6Kh5ddlRUk=; b=uKu7gZYI3h7tIzN/ooFRwkWxgWQew8sahWjI+GWS7feLWBD0+B8eo33geMJDDr2MiD nkclLQUlUKd5EvUCn286mfvGtgMZWNDMXA+Ca6EpK2Rx9RtvyNe+XWtpHQtoddyFC+RB 6EaiHLEtk5ChsCTNa9Z6lEQZAsD8nFNxxmC25DkTV7BfTKJEmGxgdD40JDrXziSCn+yC qq/aer7XwKpHkINgbTbaMjf17v3c6MzTjabtDYNMylgGPGdAWGGtFts/92ZY7ywE4tgH +iNV1GlSn6N1rXGSfDL2X4rqDzwVA+LFMCU95hiSXMND0/OEm+6YGH2p2XNpt2icROdw bBpw== X-Gm-Message-State: ACgBeo0ztpwQPWB9IruhacJv7qtosByQUH9irwvsHg6uptJCE3E78SF2 REc8SYs6p8CDctQyJee7Uo4= X-Google-Smtp-Source: AA6agR6KmFeqjz5vAdUFqOP2Eo7HrjnfjiN/XycEKySHuUbsepv6SQwOYG42HDmFkzOTAIcn0IgvmQ== X-Received: by 2002:a17:902:e848:b0:16f:8f:9027 with SMTP id t8-20020a170902e84800b0016f008f9027mr2348132plg.66.1659625315086; Thu, 04 Aug 2022 08:01:55 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id y2-20020aa793c2000000b0052d27ccea39sm1167710pff.19.2022.08.04.08.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 08:01:54 -0700 (PDT) From: Ihor Radchenko To: Cletip Cletip Cc: Org Mode List , Bhavin Gandhi Subject: Re: Tracking todo state changes AND automatically change to done when all children are done In-Reply-To: References: Date: Thu, 04 Aug 2022 23:02:58 +0800 Message-ID: <87y1w4oxul.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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=1659625498; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5YIdMwBbQ+c69/5Un63oU5f6xRtt+VJqK6Kh5ddlRUk=; b=SAIoB3E79QefnlsI+8R4tvjQ8OTt3rm6S/uEutqWMLyFVNclHvgHPGgLbUNxVyxqVUdinY OfztJmS7hKqAVUdma6N3m98lfXoaT65Ig3/SCF6+Ib6k7nZbH2u4gt637fhuSCx4N+T3bk cxw/r2n9gD/Vfxnjmfri0pw+6YM8ZdBGuAsTHoGe5TYil5K0FIdtg3qD6dz1RAJiPPb9FL QsAz3b8iw6p994xlHqAmKZZzPpxYJFIqY83x/JChdDdAtSo8pTqo1DN7tHa+edC+Y4HAp4 9itM7L4Vu36LOTryq4Q7WYO3sgtILnAUcARInb9ffxJ1t7b09yd+OrBKoEq9pw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659625498; a=rsa-sha256; cv=none; b=GgF8gdejRufSohSte4vFMj1KI+Dv5dEluLW0Xkk/oZTZ8ra0dAunUlgmaca1zKfSUcKwyc DTDjuoEXgY7SdZ/tkG0U65OQDCLSVulOHPjRB7BOv3aIs+9HwtHvJs4cYKtqCFL94g4fxA IkSOrDf2b5s1IfxD2czfntqA3lWB0HTxahy4kOeHLPh8p/nnZg5vHysO3MaCQBrMt0vL86 sVOp7y9yG7Ze3d0EcD37/E9VsdtSKfs11hAZGC6wz6z4Cb/Jtsp8TpVJ7P/4jDbmKUMMI/ fAIaVE5543D89fw6ycrDXrisFtV+MBUYNoHsQS3isDqfv9itOlF5+FeLvKKHAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=M6hnQtPq; 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: -8.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=M6hnQtPq; 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: B3838A351 X-Spam-Score: -8.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: tz61lPixM6HI Cletip Cletip writes: > Hello to all, > > I am trying to do what is in the title of this mail, but there is something > surprising: > > Everything works perfectly well, except when inserting statistics cookies > (for the parent obviously). Indeed, when changing the state of the subtask, > the lines like this : > > - State " new state" from "old state" [2022-08-04 Thu 16:09] > > are not saved under the subtask, but always under the main heading. This is likely related to https://orgmode.org/list/871qu8ccvr.fsf@localhost CCing Bhavin. > To reproduce this curious behavior, you only need this configuration: Confirmed. Something inside `org-todo' call in the hook triggers recursive-edit that, in turn, triggers premature call to post-command-hook containing note saving function. Best, Ihor