From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 wKn+GQCztmPW3QAAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 12:22:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2IAfGQCztmPTZQAAG6o9tA (envelope-from ) for ; Thu, 05 Jan 2023 12:22:40 +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 1769D2430C for ; Thu, 5 Jan 2023 12:22:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDOKG-0002tv-4r; Thu, 05 Jan 2023 06:22:24 -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 1pDOKF-0002tm-8D for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 06:22:23 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDOKD-0003lM-2H for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 06:22:22 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 116612404A9 for ; Thu, 5 Jan 2023 12:22:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672917739; bh=s6TfWZXyRRduTvokjger5qN55E/XIcefU8iQ2WmCIHo=; h=From:To:Cc:Subject:Date:From; b=YHBmVOAGtUGQABAxQmaPjamKg9IkPJ9CBfpc5d0F1Lz89xiUv+QL9pI72B8cj/Yx+ QOP0R+e4eFzAzz+YmED4e/yu+UqB+h+G5f7flQWZfZYLtXlUS7Eqjxxueq53KgWsI9 PB1dJEppnE2vaq9HTvKqYDBzPA/YAJ6EYBPUrwGm9Qrj9/cYsvEBRTmEo5WNtOFNYJ 9cdmcknB13Qs01QNZtskAveTzUggtZui3VJFRgW+57aRz0M/psIQ80hZpCIfaiCo2t FYvUKlojDSThmnCpzATwEQTHkCvdmWVnEUAkRMCv8gc5zRJbQLOMLNF47/MFJTrH6r zuAFf44Wk/RaA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NnkZy06tQz6tmG; Thu, 5 Jan 2023 12:22:17 +0100 (CET) From: Ihor Radchenko To: Michael Maurer Cc: Org Mode List Subject: Re: Using header-args to set default TODO state? In-Reply-To: References: Date: Thu, 05 Jan 2023 11:22:50 +0000 Message-ID: <87r0w9dy45.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672917760; 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=m96QksoOtl/erGtK54cRI9SLnddIzk3Jq9v4BupdU+g=; b=NZpWGJ0XO9EhHqT2TdgyaOlUdlIxZcc57tMpCO7e3+RTAP1M4maVHX3qxySNZFFqPk3vXx ZYDJrFh9MGjRPXsEe16dFBJJFLGZgc1pUpaEDJ9gt02Tshp3KjlnVK/kaeujT6kpuHgY/6 GvAh2L2dxBpUXNrT41plorHZeWHv01IIK+UIwEC/sUDCga8krswPsUJ+VaYU/znVmBEEWF VZQY+QiMUwHliZyhagaXGqQkfOYOdjKulhXce11iNtvExREDyAI/IH7X8gViF6l1x68xEj kwoO5uYMVV9hnK5b3LgtABxYTpAu8lfDzTF9G5mnMWz2sa9ZLGgR/JPB/ut/Jw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YHBmVOAG; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672917760; a=rsa-sha256; cv=none; b=QtzNRoMvyY3xXzk79+TYgGzo6tKUV3R772hhoqmLN3/MrZ5+uBtQiTjPvErri6XMQaocG9 oug/KHrMspd5czyuvxAte5hm4FS+Yk0uTK/jtk68WLfvX+T0xVIleGm/ZmJP3lJc4AuhXL zYtMAUrZcYHSfQ/9PAwtAnv2Jub/MzvA32/sAj5e4a0/yWBArF99P8qsSWu8k2fWZhnucq H9P2HIh5aXUkykW79AvbHRpwk29f+4Q2gs0dd/HXgIA9h4xKOR9aojT1rpN6XCyDjqz7Xn 9IRKGRsFKahpUMUjk3BrB6Tu+h/S7HORmIotrJcufLY925ioXELZ9H43plOkZg== X-Spam-Score: -3.51 X-Migadu-Queue-Id: 1769D2430C Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YHBmVOAG; 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=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.51 X-TUID: Gu5UKoR4O5h8 Michael Maurer writes: > I've been wondering if it's possible to define a default todo-state > for all items appearing under a headline, like > > * shopping list > :PROPERTIES: > :header-args: todo-state: TOBUY > :END: > ** bananas > ** bread > > so when calling org-agenda both bananas and bread have the todo-state > TOBUY applied to them. Obviously placing "todo-state" after > :header-args: doesn't work, it's just an example of how I imagine it > could work. You can use `org-agenda-custom-commands' and define an appropriate matcher. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at