From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uLMSIuNOpGKp6wAAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 10:14:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4Ba1IeNOpGKaCgAAauVa8A (envelope-from ) for ; Sat, 11 Jun 2022 10:14:27 +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 46C8538908 for ; Sat, 11 Jun 2022 10:14:27 +0200 (CEST) Received: from localhost ([::1]:42258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzwGI-00033x-1L for larch@yhetil.org; Sat, 11 Jun 2022 04:14:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzwFH-00032t-L7 for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 04:13:24 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:45650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzwFG-0003ih-6P for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 04:13:23 -0400 Received: by mail-pj1-x1029.google.com with SMTP id t3-20020a17090a510300b001ea87ef9a3dso1389786pjh.4 for ; Sat, 11 Jun 2022 01:13:21 -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=hWDgSCqujsBAydX4O09s7jD6WYgGcMw5Y80Ph1vG/c8=; b=kaSCWGkJKxqmquSSQ0GvLFZCau5wylqiMj8WEIHt/0xPh/oS/WXVONoq0ztTu61JsA l6u+szegi2/sMefFQwPqOfSnH4yuD/NcC5O9iaY1FIluSamSr2QdEaOYlXeb/dBuyeUI Ko2OpAT/xtYEfxBw9lMcN7M+Ef2VJV8rBFF9xsw8EmapG1YI0rZwcXtacOC8D7YvSQjQ 3nBIhOkhYuNTBFrcNby3VK8jcdAk9n76I75oaord2pKoMs5RDcJW44y+2MOup/bGXbnx ZqSiDCViR/OXi9lAZ7roX1T68rhm99Hq4V/u1db9plCWKdASm6qZ/zPLKQl4GqwFnxjr G6OQ== 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=hWDgSCqujsBAydX4O09s7jD6WYgGcMw5Y80Ph1vG/c8=; b=2KJOghXKQUQFEHsOhW2QeRMfGoawZa8/P+3bmWQogVzG7kp0vArz5eesajs138KJLv 4JZ6mPq+yplqbpMUAnnm5Ep9OVgv97+2s8C/4Wukwzz0mCZ5ubAAnlv4xWc298GIzaV7 +jwK0nqC0nq3+dmD+eLyIL+Fhu/33tyUIwUhzVzzWu8vjAQSkFrT4aOJtqv7dYAZCgMd gPrcogE4EmRH29Cf4hbfMQq71VmVFF94nVy4ml5cKIVzdibjfQ/6e8JeAxhTRkI+L1EE h+4HnXQ/giloCVzpDiCb33Eex7FDbfENFd/F4hIUeFiZUVNrfYyRwydwpeEUeXKDRtCx b+Sg== X-Gm-Message-State: AOAM533ZCIwBzin3S2jBEl9Olpsa6bsm2fBVUAF7Rz1c6sqExyvEP8M9 7rdqfWs+fKuFq5jyXkl1R0w= X-Google-Smtp-Source: ABdhPJxMlsz6RjUFJY9vz13Ln3ZeoOdD0kcvY5qGiKAcq8oa7aG3vAX9RRWAM2jmcD3G+NbKGdTuew== X-Received: by 2002:a17:90b:4b82:b0:1e6:7853:c004 with SMTP id lr2-20020a17090b4b8200b001e67853c004mr4001777pjb.136.1654935200741; Sat, 11 Jun 2022 01:13:20 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id e7-20020a170902784700b00163c6ac211fsm973751pln.111.2022.06.11.01.13.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 01:13:19 -0700 (PDT) From: Ihor Radchenko To: Edmund Potts Cc: emacs-orgmode@gnu.org Subject: Re: Custom TODO keywords and org-enforce-todo-dependencies In-Reply-To: References: Date: Sat, 11 Jun 2022 16:13:59 +0800 Message-ID: <87tu8rbos8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.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=1654935267; 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=hWDgSCqujsBAydX4O09s7jD6WYgGcMw5Y80Ph1vG/c8=; b=SjdMyYs8FIqWhw9Vz9uFZ86/tv2zerZ59NQgxX6PDexXKgxMeUvTtsINjZl0ztSI86btsr hQqWbXPndLbtcchQu8U6KyIdE7Ls6Gf6hD/G2XTk2W+xE8tSTcqGC2yr5+TKjx2jX9GBKa 2pz2F/ES7YTvWFjtiNA6q5IYpGEb583vv46QhPEaYTvMS/c2BmDQE+XdRjB+2kEbrgnJlr SuHL8tmchzOFnu3N8vtciYgP86RHXNElxo01y8vEWTAChq38qkK4GEy18OXpXa9JO5VVyY fu+h98+OWYPaDrUm7ossa3+PntnKjy0YmAQhZQTMu9oXNQ7+b5A60R5htxYEEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654935267; a=rsa-sha256; cv=none; b=dtK+54uPWJ+S5zGnm2+23AgLpPv6CfjNUcMpxkt3wf+kxuGNFCRf/xjMyzC5ZyHD6LaH2h vEJQgew6hdrwwEuqK+NiUnktXhetU/SwiQaa5ZbK8qJiEArxex7+HSJOuMECyadaG1/G6W CwX6dkdSIb0CFJF5SmKeL/HZkKtS3C00xXmSQY0KXZbC5EkLlhKJN7ktjwUYr8s3NJYC7M F/lNKVU02XP3PSHldOKmtwF6dsn6yNCbmW4CNG8MM5FTQ6y2rVcmCLZZiYwDp2r6BoGrGY i2VEQvzh4feLk5eTTcM07BMEohpk5Qxna2/zTEj+RybNwQGyxCCtLnc5VpE3FQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kaSCWGkJ; 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.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kaSCWGkJ; 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: 46C8538908 X-Spam-Score: -8.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: hRXSw3+sIoK3 Edmund Potts writes: > I have read the manual and searched the list archives but not found an > answer to this - so apologies if it was in fact covered somewhere. > > I make use of the variable org-enforce-todo-dependencies along with the > :ORDERED: property to have sequentially limited TODO lists. > > However I found when experimenting with custom TODO keywords that once they > were enabled, the blocking functionality did not work. I was able to change > any of my TODO headers to "DONE", regardless of the state of the TODO item > immediately preceding them. > > Is there a way these two functions can work together? I would appreciate > any guidance. Sorry for the late reply. Hope it is still relevant. ORDERED + org-enforce-todo-depenencies should work with custom TODO keywords as long as you properly define which keywords mean that a task is 'done and which keywords mean the opposite. org-todo-keywords: Each sequence starts with a symbol, either sequence or type, indicating if the keywords should be interpreted as a sequence of action steps, or as different types of TODO items. The first keywords are states requiring action - these states will select a headline for inclusion into the global TODO list Org produces. If one of the "keywords" is the vertical bar, "|", the remaining keywords signify that no further action is necessary. If "|" is not found, the last keyword is treated as the only DONE state of the sequence. Best, Ihor