From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CFDDJSalvWMn3gAAbAwnHQ (envelope-from ) for ; Tue, 10 Jan 2023 18:49:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kM1eJSalvWP1awEAauVa8A (envelope-from ) for ; Tue, 10 Jan 2023 18:49:26 +0100 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 4063836406 for ; Tue, 10 Jan 2023 18:49:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFIdT-0004sR-Gt; Tue, 10 Jan 2023 12:42:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFIdO-0004rK-E9 for emacs-orgmode@gnu.org; Tue, 10 Jan 2023 12:42:03 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFIdN-0002H5-48 for emacs-orgmode@gnu.org; Tue, 10 Jan 2023 12:42:02 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pFIdK-000AB8-OC for emacs-orgmode@gnu.org; Tue, 10 Jan 2023 18:41:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: TODO state for heading intersection? Date: Tue, 10 Jan 2023 12:41:49 -0500 Message-ID: <87o7r6nv6q.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:Tc7m85AcV7VA/uhYm+Dm4vKZO0k= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.096, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673372966; a=rsa-sha256; cv=none; b=Ivug7c+IrkviliBxU9PK8ceDHNEuBTv0qhnChU3Z/njNasOQQAh6+gUHfc5y8SxJCdNkxK sTJf4PIMhvgbBZKhvQ7c91JiJOZQHa8R0a41nWE74aAoSQ1cgUIMWU7BdK5XAqaBlpFL/L mx7pz8MTEcjHlNn0xl1fu75uVo8K8uVDUX4sIyEXWerCUqkmLxDovooTzFaP4zZoNv5Jlz n9CuoBIE8kBgjpQu9drxID7kPQOXRrEw9nrqFBdY9eFXhILhVanPnzeOn+hWKvBC1oXwQK q1fiDkUyMdRWJh4g/LhW9EztaTh91yNRUCe5s4vCYF7LgxbMp7+lTQSjOelRvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673372966; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=25/ufxhFVnpwXudk+LABrJxdfH+MT2Yc+i6DNjj22yo=; b=XNYDg6xOhYjIRrF6xw1kK/2kmpIT1mOkzawJE9a9ts+cEylQIgYUvKlALCQsBT5DtA9bpf iD1abfvCcI6HPNTlHErcO2XjRgnUbeAQXmu7twG+uagR+UwGlohmMcLCqg2f61rYDfvKCh C3itGqgjC07gP4+3ZzEiWgXZbMFUDaw7SC4dSMGe0DuHoH+aMnJwQc48ZpWzMePU8a5Rfw pTczHZmZUIYLoDvU8rrgYKtynm5/7ujJM+DmKR1cwktPR/H9R4M+luIJODFhQO8jnDFLcG Iy9RdluKfVC0Xm04MIUIgHLCoLIXpgWLp//evN70sW2Z6So/Gyv6NNhZyBurig== X-Migadu-Queue-Id: 4063836406 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) X-Migadu-Spam-Score: -1.58 X-Spam-Score: -1.58 X-TUID: O7wTdhM5SqoF Jean Louis writes: > Is there a way to change TODO state for intersection of headings, > for example, for some headings by tag to change the TODO state at > once? IIUC, you can use `org-map-entries` to apply the function `org-todo` (or a different function if you want) to a collection of nodes in a file that are specified through tags/properties matches: (org-map-entries #'org-todo "LEVEL=1" 'file) will apply it to top-level nodes only. See (info "(org)Using the Mapping API") and (info "(org)Matching tags and properties") -- Nick