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 UH8vAd23x2L3dAAAbAwnHQ (envelope-from ) for ; Fri, 08 Jul 2022 06:51:41 +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 SPMOAd23x2KCgQEA9RJhRA (envelope-from ) for ; Fri, 08 Jul 2022 06:51:41 +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 CDA4A1100D for ; Fri, 8 Jul 2022 06:51:40 +0200 (CEST) Received: from localhost ([::1]:34098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9fxr-000618-TI for larch@yhetil.org; Fri, 08 Jul 2022 00:51:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9fwy-0005zP-AE for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 00:50:44 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:56254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9fww-0003g9-TA for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 00:50:44 -0400 Received: by mail-pj1-x102a.google.com with SMTP id w24so17107341pjg.5 for ; Thu, 07 Jul 2022 21:50:42 -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=21+kSCFuNMr+LbpiPSnIDY8SABPUsV7hrk79RD+9/X8=; b=agbkVq6vs9JTjdEuqh9IQXUC28TV8lNnNx9SmqbRokjpcuMFK60OOjgw5ia53aAmO7 36xw6+y+NZAb9BMiYaNR7vX626rJOPA0DZGmbBLowWiU/88+aO6q6pnfV+zbFg4vuSxh +p8akUoY5hBh4ua9y/BTNJ3nefkTjzkmaATDHLjcJZ9aupdkfUx1YTMazr+LMnET02Lx CvJLHlotK6RKxl3SvAcq/hyOTsugKiKDTOt0Pq2pU8INbI/XfkxE4I9mpX/rWnPxpMp2 eYNpisoNmt7QaX+BK63g6Yb3dVxaCWT0Kg0yvdn0063X0md7v1ugUKL1ocMAyCBpxRjZ 8n3Q== 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=21+kSCFuNMr+LbpiPSnIDY8SABPUsV7hrk79RD+9/X8=; b=b+8OyFCjl5fZenDhJHIthrlrCuj4F1UxP+Lt7/AoIQEM9EI1Jx9KV5j4neOo5C5pJz t546ka+Nly1xsG2H/WK30o5n6X7EJqilLTqXf99gDwYFEU9F3i8rcM3EcbaCDkxwdFlF C6oWz6XKqyc8+WsvWk7/Wf0fKFewA1/ZSdEdw8B2AJsqo5eYtZIFJPubpooXK/D6bU4h w14RBd+MfuPaVQRY0MoWLIoOalEKH+dZwEx05ZV9LQ/3XiuNXze3QJuQxD4ziEWmsygA 12gW37EnEmwX7lHE+djcRlcYF2whwYiQe+Jcc3qCm1TuHZD6fPsNp3o5MLtJuQEnM/WY ZzuQ== X-Gm-Message-State: AJIora8ynnY1GMol6pmkeOpbRJDCSl/JLlU290VYlTTlH3ViY4QdS42/ y5XCiclQq7+y5uwuF73imv8= X-Google-Smtp-Source: AGRyM1tyzpSq29pB/IERNcYydBM4hEbWVCdrhBWqTa8KYcDxrBXFj4T9pYlN/IOQKyHP4e7qr+am0g== X-Received: by 2002:a17:90b:278b:b0:1ef:b15e:61e3 with SMTP id pw11-20020a17090b278b00b001efb15e61e3mr9436212pjb.143.1657255841413; Thu, 07 Jul 2022 21:50:41 -0700 (PDT) Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id b5-20020a170903228500b0016c0d528291sm2868208plh.106.2022.07.07.21.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 21:50:40 -0700 (PDT) From: Ihor Radchenko To: Bob Heffernan Cc: emacs-orgmode@gnu.org Subject: Re: Problem with defining stuck projects In-Reply-To: <20220707163200.ug43xhgzr52t5lyc@bob-mtu> References: <20220707163200.ug43xhgzr52t5lyc@bob-mtu> Date: Fri, 08 Jul 2022 12:51:47 +0800 Message-ID: <87v8s82om4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102a.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=1657255900; 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=21+kSCFuNMr+LbpiPSnIDY8SABPUsV7hrk79RD+9/X8=; b=lp7Nqt2za6H3OwoDxLtI4c9OqZ0GPUknN+XSxMovQ6jn3WrQojYFvonPeB/kPpMyaihPoU ubXcrhnSgx2z1v9Hy9jNWCeBqO2V7+YuQSpOiszE/pfL1XntEglUEIljbIH6AqBm/TdoDw cuDl+KFoig1ofvLsRP2cEm3Z9VlAe4QvcFs8KgiEEbOfsSRwNdMn5/Xhl0ZqcwJjQHXEU3 h+HGC54FrNBYZLUng7Z8yMXyG/AsKiyAesYlqLqMhpTjz80z0ix2HAqDAyiPFVnwx1035C TkCYmqZ6XaQF2AjqDwT/NNQw8uyHhF+3oQ98Y054r0EIvFKfajJiJm8wrrJpfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657255900; a=rsa-sha256; cv=none; b=k+JRuB3eGo2+2yv/VGXF1b3/VSv3RTXR61PEuQ/LCvhrwT8yqZCm3sK0iI0fQ82Qlt7ISU VvGtrFiO8emYR+BJLli948z538aO3Qj6dIMNjSDt6g3D2TySHr4Ufve/xOh1+3G3JEZ541 qriLSWBF1rmAM+pdu9AZjRP6JmBxplzjOAkKuCfPW4tJ1xi8m60nfdvBDHYoDlig7aRV86 qw9UP6GXiNUtjtKcwYmm9gxJiAopnf6l6nFlbvCUXbA699BBzE4SC4GcCqqUSq8YLueJYl nONnJXJsZb5kcVhTsVGV3MAiE1/a1nH5+nn0u4cGvsecYOAGQwBgrCdYdM90uA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=agbkVq6v; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=agbkVq6v; 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: CDA4A1100D X-Spam-Score: -8.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1BS6N0zzhdWo Bob Heffernan writes: > I want the following: > 1. A project is a level 1 header marked as TODO > 2. A project is not stuck if it has any sub-header that is scheduled but not closed. > > So, in the example above Project 1 counts as stuck, but Project 2 does not. > > What I've got so far is this: > (setq org-stuck-projects > '("+LEVEL=1/TODO-DONE" nil nil "SCHEDULED:") > > But this will clearly mark both projects 1 and 2 as stuck. > I need some way of specifying the "but not closed" part, but am at a loss as to how I can do this. If you have org-log-done set to 'time, your completed (closed) tasks will contain CLOSED: ... in their planning line: * DONE headline CLOSED: [timestamp] SCHEDULED: [timestamp] So, you can try the following regexp instead of "SCHEDULED:": "^[ \t]*\\(SCHEDULED:\\|DEADLINE:\\)" Best, Ihor