[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TODO state for heading intersection?
From: |
Nick Dokos |
Subject: |
Re: TODO state for heading intersection? |
Date: |
Tue, 10 Jan 2023 12:41:49 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Jean Louis <bugs@gnu.support> 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