From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 kT7II3wv8GK+BQEAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 23:32:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wFzGIXwv8GLpHAAAG6o9tA (envelope-from ) for ; Sun, 07 Aug 2022 23:32:44 +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 124E3118EC for ; Sun, 7 Aug 2022 23:32:44 +0200 (CEST) Received: from localhost ([::1]:42698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKnt5-0007S5-83 for larch@yhetil.org; Sun, 07 Aug 2022 17:32:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKnsC-0007Q0-U5 for emacs-orgmode@gnu.org; Sun, 07 Aug 2022 17:31:48 -0400 Received: from mail-ve1eur03olkn081f.outbound.protection.outlook.com ([2a01:111:f400:fe09::81f]:47430 helo=EUR03-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKnsA-0000A7-HP for emacs-orgmode@gnu.org; Sun, 07 Aug 2022 17:31:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UHMgFqAUl7voOVjnZZe6Ztvh6OGku1S5aZKT4tbuJHdAHmGQtbHcOqN49IUI6F8cic2KfuXoGyq6mijdttUlZLl5g0+DmLNSVtm2JvYsUsJ7sZQSIvJC48uHpnc/mCqYuqgXdUpO2tvuU6mnuUpwQFKYplZWLzHn/1XWEHOCt7fxYIw012pOZJVJEI++ZF9aD7EXf1L0qVnrr6crO+F+YP5Vm+/6nkUH2TCHRUj50vyq5DjrTqwqR1qHJosNin20P5W9+E1cFHceCO+IuFz/oHs6CsAqUf8OYVWI5RReRgcSgLhEZdAKsajScsHPCInUnyQE/E9KelO+KTC7xKa51Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ApvrfH8DYZ0/qM36DhIf4VUIfQfITz7ucqB49/5g1ME=; b=G9WsuvnYWZlJYBcq0xGIe1+umTZZmy+by7w+JwsUOhXcCr1AdanzbFiNn9oKNq2mj1543SVer/yWCECKmCtsHO1sPwj4yX0kJmLl6479L6/chWthU5lR6fv/b91GZc0WGWC7aT8Oascidewc/OWEg/d0paexx5sjHB4p/uzg6QfHI8bUARht057wsN33b9tGWZE9TqvXw4n2WZ72op9BOK62sm71uTZHxbA6HipvkrpuLc33cjWHp9W4qZHIM21EskgoU0pqjE9YsZZ5vlqymQPpIWXyYWT7Hst+QVYXm1DNyx8ZzKeQAlxBK0i0a9FBbTatPl2qhmZSE8xGVmHA+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApvrfH8DYZ0/qM36DhIf4VUIfQfITz7ucqB49/5g1ME=; b=bCfxiVMFt9IXUc/75UdSAXHChi7ibCCKB7eq/IYNW4cng8l2GqFq0MwOZvlxS7DZH8RRZ3cXCuZBPLxsWoV/2oh4y0m0gcEJRgZIDIk3Pe0W/dxitZtv6LI38FA4t6W0ymuUk5cb+ivRaG7aXrdi8TZoQjME8bsDbgHY53i1CbrRqYvW9qoPkV0ZOvMr/ddpAFI0R7tgrqv+eGbGfWMYsyGOOwYdK6RFZb6el3ru899ktmRIhXacG10Uk8FTGgiM2/TAu182ksMCmeyOM5FKLWe8FXkNNk/LMF1KN7NM3qD4zJppi6H7KZAb/BIDbsF4V5ApoMxiDqRPj8msH4i6Hw== Received: from AM8P250MB0198.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:325::5) by AS8P250MB0233.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:378::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Sun, 7 Aug 2022 21:26:41 +0000 Received: from AM8P250MB0198.EURP250.PROD.OUTLOOK.COM ([fe80::58d7:8077:ef2e:eb82]) by AM8P250MB0198.EURP250.PROD.OUTLOOK.COM ([fe80::58d7:8077:ef2e:eb82%3]) with mapi id 15.20.5504.020; Sun, 7 Aug 2022 21:26:41 +0000 References: <8735ekm5f4.fsf@localhost> User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Inconsistent behaviour of TODO + COMMENT + TODO dependencies + agenda? [9.5 (9.5-g0a86ad @ /home/ignacio/.emacs.d/elpa/org-9.5/)] Date: Sun, 07 Aug 2022 22:49:25 +0200 In-reply-to: <8735ekm5f4.fsf@localhost> Message-ID: Content-Type: text/plain X-TMN: [fNTZ9EFycTroSDOLbVHwlj7vpCQgUaXI] X-ClientProxiedBy: MR1P264CA0212.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:56::20) To AM8P250MB0198.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:325::5) X-Microsoft-Original-Message-ID: <87h72nkans.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1dff557a-8c7a-40a6-5988-08da78bb84dc X-MS-TrafficTypeDiagnostic: AS8P250MB0233:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V2slT+vntxcTaGB1E1fUnYT9cdBe2eEk9L+VcbLDlx1nXdkz73AU+MKvtzBY1w5xSkG9Ni/txN6nUrUvpjax2eRyuMvAEgfTu27DnIbqbj39XLNx6Xs6La/fgSBlXfO2PbjZhTDXS79xbThOJVfAl3CyT6LEHILMCGL/hvRGa06GqACU9g0FOWaKlvfdGC7QbWlHmsFlNNo4lQVy0vZlpvIOmS5/aGMMf3WNg8UDJQCuFQyCOtk5hSCEtUjkP3qjfNchkCu6XYw+H7pcqURcfnGfd0tXcSHtqZqUhqyzEPbfsVI5XIytyLygAxDZ+tnWZXCDPMJRyTwaJ5+PUsuKw0jy719Qqmz8zDZl2vPOiF1Zq+pCjy0VxoCOeGNXtreAtL3S9SlnGrPKbs2NeUCzTYt+2BCpXilTFdajfQSow1Cpc69BprMuWKuYvsfah/GuRR3xCdpZUTeW6sQNZSyuz3zwbt5HUkw/mjIouyndD97LnFhkKQDFZfwbm8mC7T41tsEyl7C6QGRYkPxpIKQE38sA2QVFmlr8510+9zE8xV9ygSbl9LexTHn7BoNtp7JzXxEmUsuqhx9+jdQBhg09KyN73+f38yC5V8gCyPkyZRGdh4mKmbeRylW+9laQGjk8uFcpAyUMq1ItaLLNQOz5QCk9yX7HPLQUTLPRwBbeMm/2u1hWiFMMz/2f/wBsgx8W X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HACx2vfcPhPQ49gKgkSY6AK9NsvdxF0kqEFlVd1XSFYLE+pt8dPpD0gc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PAKUO359ybaPqjrym6jVgyvSuc?= =?us-ascii?Q?nQfEwhlyh8RmPK2l5cX6Zn1barzqZgXZNisXQ5eUoE8Do3F/WtLpatNkRmqU?= =?us-ascii?Q?p2musWtK8Sj7itpGZEY8fdLyGqlqKz7v5fEcT7sIL01/eRFm25Fa3Fauy6wh?= =?us-ascii?Q?Gbj5NfjCQfAcEHbjHymL+8V5hnn1oxQ7uJQkDkK6nW0/P/BpCQnGRHg/Rszx?= =?us-ascii?Q?gTfnGOY/FxfOhiPoygPJv2UR0Eziuuhd0woJxtBv0OelKXJ7+jfFcH7PDc0v?= =?us-ascii?Q?VtoPxj4PSUYuPsCCZGCA1zZusu8SPl4Lv7WqLjy3RNIY9EXUoCZpsiBzdP3d?= =?us-ascii?Q?RgfcAPk9uLR620rXBrojsDlbbcJw7/UOdi7bmg3Yhl4jmaN5H/49neZqccdJ?= =?us-ascii?Q?KQM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e3d53.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 1dff557a-8c7a-40a6-5988-08da78bb84dc X-MS-Exchange-CrossTenant-AuthSource: AM8P250MB0198.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2022 21:26:41.1940 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P250MB0233 Received-SPF: pass client-ip=2a01:111:f400:fe09::81f; envelope-from=ignaciocasso@hotmail.com; helo=EUR03-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, SPF_HELO_PASS=-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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659907964; 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=ApvrfH8DYZ0/qM36DhIf4VUIfQfITz7ucqB49/5g1ME=; b=ZTe2h4B8+OW1gORtq0oPpz3ala4yuMo9GHiksisuyfdrX/vHvYNWL0MgEv5v3dmnqN09ZL LBhjFI0aZ+z6HPj7HvWTSspa8M/RB1hVadjrA5WoLE0oE9ZNv6kQHJD4w3/eMhkmh5RgLC 7RudM/b7Zuo+P7ZaoQJVF38sLdlsdPdlf6SRc77Vl/PGOjpzaSICPy0A9CdDzxThAdXIR1 DbkFG1ovdkOLQxIs4IrRECWjPunth65bEMWFHfDuU3IYi65TWyahixZmagRBeqk5t9IA7/ SyBtOO1F3GnOqQtpkCAYtOs5KSTpdYHOJ2QprZ0TNmKZDKcD/WARJDVBC9F1nQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1659907964; a=rsa-sha256; cv=pass; b=a796MxhSly382BjsTz+NDQ20x+WKsfsKs1tQBp+aV4hWLlM82f7NafsPecUUwyN29uJeIh 9xRzKoh06V5V0ITzhq7EIL+pjPIBzcsaBHDmdXN4MQi1ZdW6CRWrxhoOM5fjsDfE1UnG5v Ig0QXH6AhiEiKZu9xzj5+DHiTbSXH/Kp01tRfXyF4z+EXSyMPU3/J5c6nkz1b6tmGOO2sB jBLqsfMSy35SG+Zj+TW4/j0mbUdG3c6ckxXinEzxZsbjkYAiD70tZWxRlXUgQfN6o4s63G 9pYwBMgK9Z/uKg3fgSu2Gp6mISbpzLqAJ3qNFNUipLb0N2HhXNP46oQ0pqG82w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=bCfxiVMF; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.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: -4.89 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=bCfxiVMF; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.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: 124E3118EC X-Spam-Score: -4.89 X-Migadu-Scanner: scn1.migadu.com X-TUID: C9dWo7HWn6X7 >> P.D: Just when I was going to send this I tried to investigate it a >> little bit more to not waste anyone's time, and I found the variable >> 'org-agenda-skip-comment-trees', which defaults to 't'. So now I see that >> if it is set to 'nil' it would not be inconsistent to me anymore, but I >> still think that the default behaviour is inconsistent, or at least >> unintituive for newcomers, and that maybe a corresponding variable like >> 'org-dependencies-skip-comment-trees' might be needed. > > This makes sense. The new variable should default to the old behaviour - > we do not want to break existing Org files relying on it. > > Patches are welcome! I was going to write one, but I have found further inconsistencies and incomplete documentation and I think we should clearly define first how we want dependencies to behave. According to the Org Mode documentation and the docstrings of `org-enforce-todo-dependencies' and `org-block-todo-from-children-or-siblings-or-parent', tasks are blocked when: 1. The task has undone children tasks. 2. A task has a parent with the property :ORDERED:, and there are undone sibling tasks prior to the current task 3. The parent of the task is blocked because it has siblings that should be done first, or is child of a blocked grandparent TODO entry." But they are actually blocked when: 1. The task has undone DESCENDANT tasks (i.e., undone children of children also block) 2. A task has a parent with the property :ORDERED:, and there are sibling tasks prior to the current task which are undone OR HAVE UNDONE DESCENDANTS 3. The parent of the task is blocked because it has siblings that should be done first, or is child of a blocked grandparent TODO entry. BUT THE TASK IS NOT BLOCKED E.G., IF ITS GRANDPARENT IS BLOCKED AND IS PARENT IS DONE OR HAS NO TODO STATE. So my other issues are: - Remarks in upper case in points 1 and 2 should be clarified in the documentation and docstrings, if that is actually the desired behaviour and not a bug. Otherwise, they should be fixed. I can do that in the same patch. - I also find inconsistent that in points 1 and 2 not only parents and children are considered for blocking but also further ancestors and descendants, but in point three only a direct chain of blocked parents is considered. What do you think about them? I'll start writing the original patch for now, let me know if you want me to address any of those points too while I'm at it. Ignacio