From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GF0QDGLi62IMVQEAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 17:14:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mDYMDGLi62Jm9AAA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 17:14: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 E351B25D5 for ; Thu, 4 Aug 2022 17:14:41 +0200 (CEST) Received: from localhost ([::1]:52290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJcYb-0007Ai-4d for larch@yhetil.org; Thu, 04 Aug 2022 11:14:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJcWe-0006OP-MM for emacs-orgmode@gnu.org; Thu, 04 Aug 2022 11:12:40 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:35341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJcWc-0005Ov-TR for emacs-orgmode@gnu.org; Thu, 04 Aug 2022 11:12:40 -0400 Received: by mail-ej1-x629.google.com with SMTP id a7so24492164ejp.2 for ; Thu, 04 Aug 2022 08:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dwJmRa4DOtmgCETrIGEVfBIFMzwqUxEZAFTXdf3BG2E=; b=gLdSoR8gOQ0VJpHZWY89PnBgHiKNHi36oa5F7py9uqWEkb9x9RKHmEcedp3KGw85mX jhf0XvA9pXLFS/sg9x5qfs2fWv2Vb5fgj+FYvNU802RCza4fP3VBvp+ImBZOgKJpeN62 dDedXaMCusxSBxRrO8Gnf4g3eb3YJUXyO1JQS3hCiQ/3sVnYy2ZWIdc8URI8AuGO79pu /eEIgGQPaeFVLwvH13zOFeoLTkVrfiuDZEfDc/+yuq+/rcJ1XKBowbuz2h49U+lMaBNA HxPXk2DbzA+6B2mScfIbLKsb/YU8IDVYSCWjdWUjKerWn/pZOy9kyrQ0lJze9SrzE1ze +JJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dwJmRa4DOtmgCETrIGEVfBIFMzwqUxEZAFTXdf3BG2E=; b=d1r0v/uQZ9f7rp0nf9/kOZgl98PLDis4pkXD1VSCs5GQWwW871xPhJXsc71D+KSRXg zeoaOHnx7C02BiVqPx9ESgMeO5kKUetP7XRCrpE3IuuRn0dC8l6XQNIltANtbO2RrUBY Pd+SmCbVxVTVCcO01zYFTtZ5Yg9kVK3/eyZmT043u3YiypmJwc9QfWBrpjWOAHCvAovl QR+hSQr2rQla0DIGO4P05qtC+3LN0vxqsqDXHrvW5K28wMmLt7Ueru9oa2MhB3lPitGB B10VY7uhF3uWIVH3ufudqCG/hgQArLkeYvigeY3mgdOnhtL8b8e1Uzm9nqR5vwG2uMIZ b0jg== X-Gm-Message-State: ACgBeo120iyg47ptD3wuDEXU/IvauOI9vu8uaKg2SDHJt/LLqfjHPg1t J2bOdTR5+8WpVXW5NDXA5/GmdB9tptLLyAqmAW8q1wlQQ5NL/g== X-Google-Smtp-Source: AA6agR5yBQel2W6QrfTEIlK1PRhoPJDXxhb2d6rSlvT13wU1QwT1wVVlgTWGVVmGPQL0D3PKPQZ9tFh/+uKN4mLa4K0= X-Received: by 2002:a17:906:93f0:b0:730:6d4e:970c with SMTP id yl16-20020a17090693f000b007306d4e970cmr1820491ejb.188.1659625956220; Thu, 04 Aug 2022 08:12:36 -0700 (PDT) MIME-Version: 1.0 References: <87y1w4oxul.fsf@localhost> In-Reply-To: <87y1w4oxul.fsf@localhost> From: Cletip Cletip Date: Thu, 4 Aug 2022 17:12:25 +0200 Message-ID: Subject: Re: Tracking todo state changes AND automatically change to done when all children are done To: Ihor Radchenko Cc: Org Mode List , Bhavin Gandhi Content-Type: multipart/alternative; boundary="00000000000094a28805e56bc7c0" Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=clement020302@gmail.com; helo=mail-ej1-x629.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, HTML_MESSAGE=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=1659626081; 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=dwJmRa4DOtmgCETrIGEVfBIFMzwqUxEZAFTXdf3BG2E=; b=SZLzTjySIaeo0jSQwD8zW8s2JCNkdBGRWBTNcG/NjGzAd3YI9SytUqFjCU+vyH3XfRChkS C2545TgEll4IczZwhdlJhmw79qLVkeWKQ1lLYOjPIS++eIdc9V/+94pvUM9ULjZRmRXVdC 09rRrqWsX+aXsyrc7uN2ba2YobFzYQ6A3CHCNDIbMHZMaY/sx1aRV2zNfmSjRvQiHb6IZ9 w1OOtLTuXDWyuFOolPV4PaeHLXRF2C49zVlEJ2SerPB1YHxqwQfa2nIfRKY9hUFjTfuSqF QS+WcLtMxua0JS9LICNjSj3fGhNFZpqsJu/H/vG8twCCD8c1wR50mvNdVFNBTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659626081; a=rsa-sha256; cv=none; b=UqZRcC1S14S2AsDO8lYvQhf7vGeqdeZ//wgXgaBLLKeSOYA01bljchrqCfwiEdJMqpLoG+ N+ZXfiVXfRpOLe15++NvdVpzJANCDDs+ZaYi0cxQVi1luberOi+uAJECNTpqkRNro11hHu YcJtnrjNBOubWkLR3LVzTYIGKda5+X8lTiBFG2TDCVC9mks4WrdhSHzNTMzWiwmxr6rCrd 2any9PtYz83r2SUZ/vjDUJ/zNdJlsEI+YXKQlwUkXHiSajMD6bLgGifCBh52+Mz/FywI8U l7y0UWM/PIVBNVTYIfgGTef94cH/wQyLpRXWVSWiAI6kzKEEg6uCJ6EWYHD6IQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gLdSoR8g; 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: -3.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gLdSoR8g; 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: E351B25D5 X-Spam-Score: -3.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: B5Sg8nisvhmI --00000000000094a28805e56bc7c0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So, can we consider this as a bug? Le jeu. 4 ao=C3=BBt 2022 =C3=A0 17:01, Ihor Radchenko = a =C3=A9crit : > 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 cooki= es > > (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 > --00000000000094a28805e56bc7c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So, can we consider this as a bug?

Le=C2=A0jeu. 4 ao=C3= =BBt 2022 =C3=A0=C2=A017:01, Ihor Radchenko <yantar92@gmail.com> a =C3=A9crit=C2=A0:
Cletip Cletip <clement020302@gmail.com&g= t; writes:

> Hello to all,
>
> I am trying to do what is in the title of this mail, but there is some= thing
> surprising:
>
> Everything works perfectly well, except when inserting statistics cook= ies
> (for the parent obviously). Indeed, when changing the state of the sub= task,
> 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:<= br>
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
--00000000000094a28805e56bc7c0--