From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UE4EDc/c42LbggEAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 15:12:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MH0EDc/c42JrBQAA9RJhRA (envelope-from ) for ; Fri, 29 Jul 2022 15:12:47 +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 E54572E20B for ; Fri, 29 Jul 2022 15:12:46 +0200 (CEST) Received: from localhost ([::1]:53984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHPnJ-0000RF-EC for larch@yhetil.org; Fri, 29 Jul 2022 09:12:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHPjJ-0004Ze-As for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 09:08:37 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:33660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHPjH-0001y3-N5 for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 09:08:37 -0400 Received: by mail-pf1-x436.google.com with SMTP id 17so4644527pfy.0 for ; Fri, 29 Jul 2022 06:08:35 -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=tyPfIyMJxRDvh2rcvbyb0++GZE04ymfPRhSWj90pfJc=; b=bJvt4BiWH7ZSXgCB8oJ4Vb8sZzki2zfA34hTr7K5m9yuT6B3vXQ97hitVqONPgP6uJ dDGlJtOopb9tGXXD+4WUdlJaVRMxSleK7tbg+VHoVohIJ2fcw1tDGZSyl0OIViEV7aTY hLDAzyHPpY8o7r6/4E2GI9yFnRaXgaz6xNT26RyWy1ASRkWpSerzMkW3Tep8BzAhReqP eqrVAIIjMh+AGIWaHPybAqR3XkBQTKrrWv0vpN5BAkAFndZ4VHeOZ/CwZYmN9LLpVvWt sZb5p7kkGmXB6v0iftiDc4cpcLhxZuO1JcE8z1tZz6qWNDZaWV9eU+pdyQozfzT8GwQl Puog== 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=tyPfIyMJxRDvh2rcvbyb0++GZE04ymfPRhSWj90pfJc=; b=JzCgFJl2ghkPR0E3QqEID/Y1TTSj4wF3PYgnFvQOxwsgcFe+wz+ibLYBJzCTWEWcdf MNtASqx2bvNsIZUwprv67rC73OQqGlb+CdZJp8V+UhNLItTaSiW6iGvcRyQPQ5PVGB5x fC904GstmUA69jjxYQecBYZ0QyLn2CN3pAyO7183SYumj8udKKGdM3Pk0AxQi/cFztru pN0pJq1ZvzUxS6irgUIOmeUUtu8/ODwaARKA6TKmtgB0OdKn17OF8HKzFG7/w7EQ95dQ duGLsxpwqXrZddDV+dxIlffTgONdK3ABKwh8zFRe4815zQsexBU95hjJD00SHrOKq3nC OG/g== X-Gm-Message-State: AJIora9q367S5/EX23GikOiGWUPxUfDye5ue5sSDid4e6LrVmink/V92 TlYXVdLiQiIW+mkEm+swhl8= X-Google-Smtp-Source: AGRyM1sDDaUXIqAHqu6am+ENAkCuiIATKirN4EDInkXbIlSJrZ7FgMtBIdhGZPLRyhg5Z1EsXdmVbA== X-Received: by 2002:a63:87:0:b0:419:f2d0:1e3b with SMTP id 129-20020a630087000000b00419f2d01e3bmr3025471pga.234.1659100113914; Fri, 29 Jul 2022 06:08:33 -0700 (PDT) Received: from localhost ([2409:8a70:217:4f80:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id a5-20020aa794a5000000b00528a4238eadsm2915691pfl.13.2022.07.29.06.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 06:08:32 -0700 (PDT) From: Ihor Radchenko To: Ignacio Casso 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/)] In-Reply-To: References: Date: Fri, 29 Jul 2022 21:09:35 +0800 Message-ID: <8735ekm5f4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=yantar92@gmail.com; helo=mail-pf1-x436.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=1659100366; 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=tyPfIyMJxRDvh2rcvbyb0++GZE04ymfPRhSWj90pfJc=; b=jO83Lk6TZat9NU42M75ZduGtfG5clXSTPtMXEbHqLB+Wl3x2JaOkFz2CaY3TeBOLPgv46Y NZUflSZeY3C9RwrI/K6cbUyYba3ZgbwTYTwmUj7okYc6CEHjfS5avJoocssuFq9w9QGY0Y ozFVkOthICK3tWTSjc/LLWQ0J/5wWo4GVxP25E61GoYOLLbvIRP2k2ymoKfKQgNcQcBNde czEN7kH2ghlModn3W2FfJd4fb6oZz30+nWcXaGaReWX0dj6ioQkCw29N6bwVHE68mjRxsc Y3GowYKxZQHNw2MyVYsZ7NVJMWj5eOAl47IO9pasYR5hvKwXctX9+0kP9cKPIw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659100366; a=rsa-sha256; cv=none; b=lxzIdfmIHy/HJtXVzxIYbt4brUJTuloE1X4g25PDEQ31OhJg8uN0sZ9qFTX17I7rbg7oOT jH7vHQw9xto/Dm+WJhYD2K3o2Ul11LK8E2a9oaSPePnh+9+w/Y+bPuArsOoTOihcPWg3xh g3i4T6pYWm3qP+ULdg1iPmdcsqExu1m8zdhsLwhmXxIXZUIir+Gvecph/0si4pW3mXAcj5 uik7rPkALLu/QwWKpManB30uayVlJp6EDwFS+qtsM9yyb7C6SU+M68RMUVp4uzrz9Gv3nL RgHitrr41XJoZbTdx2jtdQoNqR8d2xt5jGAOw24nToiU3ORPMGPeF5ubTErzbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bJvt4BiW; 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: -6.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bJvt4BiW; 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: E54572E20B X-Spam-Score: -6.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: DMzCea7DkXNn Ignacio Casso writes: Sorry for the late reply. > I'm not sure what is the expected behaviour of the COMMENT keyword for > TODOs and the agenda, since I only found it in the "Exporting" section > of the manual, but I find the following behaviour inconsistent: > > - Tasks with a COMMENT keyword or under a heading with a COMMENT keyword > do not appear in the agenda. I'm not sure if this is a feature or just > happens because there is a step involving exporting when the agenda is > constructed, but it seems reasonable to me and I use the COMMENT > keyword for this sometimes. Also, code blocks inside COMMENT subtrees are not considered during code block execution with noweb. > - Tasks with a COMMENT keyword or under a heading with a COMMENT keyword > DO matter when computing dependencies between tasks, when > org-enforce-todo-dependencies is 't' or there is a 'ORDERED' > property. > > These two points seem inconsistent to me, since the first leads me to > believe that tasks under commented subtrees are as if they did not > exist, but in the second we see that's not true. Am I interpreting the > COMMENT keyword wrong? There is indeed an inconsistency here. > 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! Best, Ihor