From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 UC1eM8kwa2MDrgAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 05:47:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gEAbM8kwa2PCfgAAauVa8A (envelope-from ) for ; Wed, 09 Nov 2022 05:47:05 +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 83DCF3D375 for ; Wed, 9 Nov 2022 05:47:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oscyf-0003Lf-Kh; Tue, 08 Nov 2022 23:46:18 -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 1oscyW-0003LS-Bh for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 23:46:09 -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 1oscyN-0006kr-Lo for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 23:46:07 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DD433240028 for ; Wed, 9 Nov 2022 05:45:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667969155; bh=hr3nNoCetyznRHEu1atAYyhFMf1BBjp7CMmCUIG3QBY=; h=From:To:Cc:Subject:Date:From; b=nibKEQMCOirgSfdX74EM9bbsowj+7s4oxkVUlmuBsSeHYzm7Ltsf1FHEbLfDEq+GL u8aZSUg6B8Qg36aq8WQkNWmYZnE7GSUL2wBCdA70v6rkj5aQ8IMVjASLqbsF0tLU0G u+a7RcLx1ORNnHxZPiylLQ2NQD9hSK95HTjtE8LRxKX3yLkuR0TdE5tteQqiFAp3Fx FrBKkdtF5XBoBfRnEgfJmT1Y69eu4ZUxr/fS3vdXcsXyRcvu010giy0fzQtcPPJ0mb WPJ3pHT9KBqWq9khT7A89/4RacvRLtXNCnhxE4qKFYGk6pW70C1l9cdntJtG3hiqc9 2HiodDLyvMtfQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6XTr11Dgz6tmB; Wed, 9 Nov 2022 05:45:51 +0100 (CET) From: Ihor Radchenko To: hugo@heagren.com Cc: emacs-orgmode@gnu.org Subject: Re: Suggestion: refer to other scheduled tasks in DEADLINE/SCHEDULE In-Reply-To: References: Date: Wed, 09 Nov 2022 04:46:30 +0000 Message-ID: <87educbuqh.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667969225; 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=9gTZJo3lW5ls1qfqhnx4X/6ALc0cOIe/oD85wGvbVqk=; b=IteNRjYxtCTxHR/Qc0s7KmFafL2k3TYccj7o+lhSTD9YNghNRocD7wItN5aYbMyD2SSOgM wpwxq3Nrmt//iE/Wa9r+Nj1CjTly9Zl2ogkPijzxkQmgNld1bFkhvBJedLb0fcSzHT7osz ccTE1hdkIc8b5v+iaRDuhB1GdrpO8+S1RbfqIA47624mqLFyUaMk/2a/39FyTRvblQS/4L /Lllbfi1OuWazg6mjpuf09bKJ7iWf9EepJH7uC+16Erz7etq3J1Msm2OIzJ9tG4nsbkq+u K44lru2f1lELjxzhRY0RnuZiHofMnkfxM17rsgTcV0p0nJS8YbuRU8WMNLLUCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667969225; a=rsa-sha256; cv=none; b=idT4BWLzaqNc/uovfL5ZKrSLbNWgFiG7hnfBNxLLEtjY+RACsnNVyVVtd1rLNlgfE7Kzj5 zJeayenKFAtzfrqCPrxoOp9YvSSsFBk6uE/POrZKHiB4vJEEXJh+PucASw9y1R5ZNbnJcv mNyNpifTdhd3MncyYnMX96q+rtVaofwOia8kS7cXY5KH8MQVeatvGVR8fovCBTwe1I2pMK HAmzzfxTHWqe5Aj9lCEABV6DpRFxsAjH4ousMTY6f4biEsf8Hd0FqB3db5ixXGEbrZCFpV wfUnIspI4h6G5SkOpzinB0gxzyyKFXmquuJtTG05RXNFBCmrOGXIha4HJ32HbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nibKEQMC; dmarc=pass (policy=none) header.from=posteo.net; 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: -5.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nibKEQMC; dmarc=pass (policy=none) header.from=posteo.net; 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: 83DCF3D375 X-Spam-Score: -5.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: +t4h0bcW35AF hugo@heagren.com writes: > I think it would be great if other org headlines could be referenced in > DEADLINEs and SCHEDULEs. This would effectively solve my problem: I > could just add an id (or whatever identifier the implementation ends up > using) to the event headline, and then use that id in the DEADLINE or > SCHEDULE, thus: > > ,---- > | * Important Seminar > | :PROPERTIES: > | :CUSTOM_ID: seminarid > | :END: > | <2022-10-27 Through +1w> > | > | * TODO Read Famous Paper > | DEADLINE: seminarid > | > | * TODO Read Other Paper > | DEADLINE: seminarid > `---- Note that the above is ambiguous: The event may have multiple timestamps, and it is unclear which one to select in general case. > Then the tasks to read papers will show up in my agenda with deadlines > when the seminar starts. As far as I know, there isn't a way to do this > already (though if there is, I would be happy to use it!). You can use diary-style timestamps like DEADLINE: <%%(my/copy-date :id "seminarid" :after "2022-11-08 Tue")> where `my/copy-date' is an arbitrary Elisp function that is executed in Diary environment, with `date' and `entry' variables being set at runtime. See `org-class' for a sample implementation. Since `my/copy-date' can be anything, you can implement any logic you need. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at