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 MA7SDdP7vmMQvwAAbAwnHQ (envelope-from ) for ; Wed, 11 Jan 2023 19:11:31 +0100 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 mFgkDtP7vmMkaAEA9RJhRA (envelope-from ) for ; Wed, 11 Jan 2023 19:11:31 +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 9978C1CFB3 for ; Wed, 11 Jan 2023 19:11:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFfYB-0004Ed-7p; Wed, 11 Jan 2023 13:10:11 -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 1pFfY8-0004EK-TV for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 13:10:08 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFfY7-0007k5-59 for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 13:10:08 -0500 Received: from localhost ([::ffff:102.85.181.60]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D58.0000000063BEFB81.00004C5B; Wed, 11 Jan 2023 11:10:08 -0700 Date: Wed, 11 Jan 2023 20:58:21 +0300 From: Jean Louis To: Nick Dokos Cc: emacs-orgmode@gnu.org Subject: Re: TODO state for heading intersection? Message-ID: Mail-Followup-To: Nick Dokos , emacs-orgmode@gnu.org References: <87o7r6nv6q.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87o7r6nv6q.fsf@alphaville.usersys.redhat.com> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673460691; a=rsa-sha256; cv=none; b=kMSyHE+zKBaf3KZmOlTnyUMvIiFHcYJPGI4HuyN/eo0NdNfBFpSW2Fwmu0I4Kt4D5VKQeM a14O5vpmfvnsbIBK9ltLxz9F4ZSgM7ZpD4tQHCBtwZszaiX2ctPcw4bETC+m8uaQQQ1TCz iLDJe0ZuaEjClfXJYETzf+eap04LLJXB+rGc/Qid9gGRftxmIGy220p95fDY+hLqwPGut4 yF/mq1ebnnwL2jD1Mz5/3bXP/xytTIU0CfXNZgy1xoeHA0nja8D/xvK3s9MIsFvbs4ryCH SWKB6iG1LfzzphUKPkXney3oAUHR3lgyezVFq4wvEhB4Y3F3MQlgjH4r1pCM9Q== 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673460691; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=T+phNLm99qIU4c5jyFH86WJ0P3JMLljI24tv2FfoSH4=; b=seXwwhzmj5xxDY1QnSyx2FuSI+2c6l5L7pGTW+1N9T/gnztbTTPrOAr2WyvOGySXZlQCpE OvVuSxTrmbgInIwJi/DlKKrMH061o1lIko0SZycALj6HXRXlZ2DjxHLqZOu6Fv3sRS03zQ BUAQ+NIRKph3DD0GzOVDxTIZj61Z6nauF5Db8gtVDHrMQ2KBJ69r+BKU9t46iBjjOPUVfq IcK3+wxGqsYmXBg1QXDZ34I57jqKq/558UtaaiuO71gfzeooGXa/JMQ62kX4+EF/VwOP2M o+21uKHvurZsdywdl5es4JTkbO97+g/Muzi4nJUh08BbNDGErFgS8xjjZ7jClA== X-Migadu-Spam-Score: -1.39 X-Spam-Score: -1.39 X-Migadu-Queue-Id: 9978C1CFB3 X-Migadu-Scanner: scn1.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=none X-TUID: K4ajzU+vmW2b * Nick Dokos [2023-01-10 20:53]: > 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") Programmatically I can do it in many ways. I speak of doing it in easy manner. I am thankful for all people who answered, though I found solution: 1. Run Org Agenda on keyword. 2. Mark the items 3. Invoke "B" for bulk action 4. Change the state of TODO. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/