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 ODAVGTydwmOffgEAbAwnHQ (envelope-from ) for ; Sat, 14 Jan 2023 13:17:00 +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 +KsWGDydwmPUMwEAG6o9tA (envelope-from ) for ; Sat, 14 Jan 2023 13:17:00 +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 17D3426AB2 for ; Sat, 14 Jan 2023 13:17:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGfSK-0004Ts-61; Sat, 14 Jan 2023 07:16:16 -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 1pGfSH-0004RU-EE for emacs-orgmode@gnu.org; Sat, 14 Jan 2023 07:16:13 -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 1pGfSE-0006k8-VZ for emacs-orgmode@gnu.org; Sat, 14 Jan 2023 07:16:12 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 924052401A5 for ; Sat, 14 Jan 2023 13:16:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673698568; bh=7Wv/w5Z8raf+w+WajZ/ii1QwQHx+gwsJTkW9Km1h7dY=; h=From:To:Cc:Subject:Date:From; b=NUlCcR3puPbr4jvFAl+bnQ2qFLnUIZDn5PRTBTW4DuZXv63qDaXhttOtYgIDxjdiX ftfEd+ToTz7qKGmofqUcTS3TYasdyZLtRDJNXwKTRkPU6rHWB/WoN57spgwr7ABdp0 gk6OWvUvYKlGPwcfB8B4wyCwwosFoVuhbUWbg0vHloLwlg16zo5cOZEb7pzphGoShz e5AKxxxNvH6Q5R8kTIPtS84oN5Y+2SypN0KhCMgyEcsKgOLAESsG5SFK8uo+DejZrd kZ9IV926xP7hUjz12FwRfXZVP/Hwh/PZNnPYtaCQGp0D5zoT/ul4Xk6sd4sUt1G4vr 0OU5sVNIO4gew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NvHLv5G5Wz6tm4; Sat, 14 Jan 2023 13:16:07 +0100 (CET) From: Ihor Radchenko To: Russell Adams Cc: emacs-orgmode@gnu.org Subject: [FR] Allow end date and max repeat count for timestamps with repeaters (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda) In-Reply-To: References: <63c287ca.a70a0220.4bd14.873b@mx.google.com> <87mt6l1h97.fsf@localhost> Date: Sat, 14 Jan 2023 12:16:34 +0000 Message-ID: <877cxp1fbx.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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NUlCcR3p; 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=1673698620; a=rsa-sha256; cv=none; b=sUATCd1Wq7GdizkQU0LJZUQ338jrd1FSDaW82wr9b/Tg2PvYfr4wUtzST8EQmYUepthTjA 6a3kxoSUjwyttaoAYOISocH4KpQ7IS0le2Q9eAJB0PFxR4TgHRUXmyRDPOkuAgDctnw0Qn jb9Zm01d5U3NtAxR4Vc8l9Pma7pG6v7bRU+G4wSCQ9nJL9BsRICDHuw/6gtvwGbkV9Mx9m I7BGRSlk/ihLhbv7bBA5i1IRIy9EuYt+uAsVFh5biYbSpcY6fnWKxIdsOvlqdtI2rNgXkd oAk+Azp2jG8rQs83H10MDxYDrH2W5ySepJ8Upk8Ta16AwkWu6xAFJX//96sK3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673698620; 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=rBr30AK2e+eY3GemtKM7jJUfPVzyCtsSx3h9c6gKOew=; b=dyu9eQNgCdNzmxTtqiasKSMBsvcu2RwGnaQNrW9YMYqXN69ks55jnhh9u4O/tZl8s6Wmi5 J3NKOX3ZIjMB7oRwTx2sxx2vnbSbM5cBFz6i+2trQqt+C/x1O3y3BnM7RMxUhS5zniKibP Mg3z/7BdedDjCpa/cgb8RwnCqIq67WLZPL7imMV+DEdwVAI+J2BGcXWnjGIDjrNGY551VF qbVQV4qn7Fl9lLKudQqINvNJ2FCjKs9PAt66oYfGD2cabPLOS7i0suQCjCCmnNOPkPb4aG +cRNKPRFE/zp3ouA9TtxkTlmGhqaopLwUPx26ICHs3P8VEozwrcRuQKEwPgQuw== X-Migadu-Queue-Id: 17D3426AB2 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NUlCcR3p; 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-Spam-Score: -8.15 X-Spam-Score: -8.15 X-TUID: GdpIotPu5oFw Russell Adams writes: >> > I know they include better repeat information. Maybe we can >> > build on that? >> >> Is it really better? Apart from sexps, diaries support cron-like >> repeaters, but more limited. > > They have repeat with a end date or max iterations. Good point. These two features are also frequently requested by users. However, I do not see why we cannot implement them within the current Org timestamp syntax: 1. <2023-01-14 Sat +1w>--<2024-01-14 Sun> can be treated as a repeater with end date. 2. <2023-01-14 Sat +1w/5x> can be treated as a repeater with limited number of iterations The above are backwards-compatible with Org timestamp syntax. Supporting these cases will require: 1. Updating syntax spec 2. Changing `org-auto-repeat-maybe' to decrease +1w/5x to +1w/4x upon updating the timestamp and not repeating when the limit has been reached. 3. Updating org-agenda to not display timestamps beyond the limit. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at