From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gGBNDpG8SGbJEQAAqHPOHw:P1 (envelope-from ) for ; Sat, 18 May 2024 16:34:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gGBNDpG8SGbJEQAAqHPOHw (envelope-from ) for ; Sat, 18 May 2024 16:34:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FjK44EcF; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716042897; 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=puhwfCA5W3k+As32sRC5WrZcdFC3TneGyYVm7ifG6LI=; b=i+b1yjDmqlTig8IDMgFc8C6ga74nYj1ZViRu+L/dPcMtz5b9Nfhch/wAQLAErf8yHatnUL 0hzRXZFk5kRpZK/7FOAE9In126OOx6xzwP0J4WdAHKK1NL+iIvLEhtGN2FiUJBzefpRf9j QGE1yF4ulcgn0KaYvB/pHfheYIFnQ1T2hbo9ytI0AjI1VjJImnMJy79aNVK6WnVzWAqWn0 xVjaC3HJxAqzDsCAelKj9MRHPzyuE2M2jy2XBQLIF1YK6kqq86HEPbj4+L9Mt+K2PJtoOe sDpjPl9xTkjKwiyrloPZTJzTZ5iquNv7aD0KJS2DT90C2RYVjZGgntZgyIwrNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716042897; a=rsa-sha256; cv=none; b=byONJmf8xdBXVkUVXu9c82TnX2Rh3aCSrhf9jXhWw+OJSBSMQ1wzI1ijduJRllN03kMVvv ApxlIn8ZGlX5Yu3MOIR46HyBqxkBqRlJp2pC+Obp8JxNSPtjVmTpKKGuUDcrmDEiUjtBnW AheGuLkUQ5h8BP3qF6cqM49Brhp3yUW7rtZKr5h72cxW0kME2eIw3FP+2PCiY2tlaDfNQR HIXhYGwiX2mEe1K+zwPiwpgaBmq44s34Me3zHpKcth0s0bWlpPGDgRVr+NJmFzsfOOoNIb kOVqaw8QXlbXzd8vTeTvkvE0t7hvJfryLtnpen3ym/Z2ZH0gxYS1UBkDSAEt6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FjK44EcF; 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" 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 CE23071A55 for ; Sat, 18 May 2024 16:34:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8L8g-00075z-0K; Sat, 18 May 2024 10:34:22 -0400 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 1s8L8e-00075j-7r for emacs-orgmode@gnu.org; Sat, 18 May 2024 10:34:20 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8L8b-00045P-Fd for emacs-orgmode@gnu.org; Sat, 18 May 2024 10:34:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2F196240101 for ; Sat, 18 May 2024 16:34:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716042855; bh=RkrF1OxdnGCGzjCIRyBmzeasYOKHqimlnMxClkYLHvY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=FjK44EcFsNjLu++s9WAWVPHkLHLW8vPBYyP5BTD8UkkFRGdgszfMiI7jcWn9tlRlt 5xHuxh0ByKvUlcMuR5W2o3aydcwTEcY72S8VuqFU+ywPv7iZURdlNQjqXOmn6VpRj/ e2L/9/aeVtGWKfFgrNPvzohsRotFWic0i1wdMLRzInbGhdX/cvnS5fAH80V/ytfZc6 DvX6HkmpDL74bQc1hw0IiNSBy2uYftN0m3CbHFbxg2DTsl2FxxET7h5ipDxoL+kg8A SgRBXXZT0S7I2mPMK/5M+HWzdUC8kVA9eF3aUSAlHBVL6ouufUdZvisRSQwovkyIKK 7MkPJCn0xxBlw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VhRD65jXVz9rxF; Sat, 18 May 2024 16:34:14 +0200 (CEST) From: Ihor Radchenko To: Stefan Nobis Cc: emacs-orgmode@gnu.org Subject: Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?) In-Reply-To: References: <87frvzodze.fsf@localhost> <87v83if2io.fsf@localhost> <87seykpn58.fsf@localhost> <87cypjtkke.fsf@localhost> <87y187s1w0.fsf@localhost> Date: Sat, 18 May 2024 14:35:55 +0000 Message-ID: <87le47rxv8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 X-Migadu-Spam-Score: -6.58 X-Spam-Score: -6.58 X-Migadu-Queue-Id: CE23071A55 X-Migadu-Scanner: mx11.migadu.com X-TUID: K8bb30SxgGy2 Stefan Nobis writes: > Ihor Radchenko writes: > >> It does not have to be lost. We can adjust the repeater function to >> handle negative dates/months specially, so that > >> [2024-05--1 +1m] -> [2024-06--1 +1m] > > Hmmm... I do not like, that here the wrong month is displayed. On a > cursory look, it's easy to assume the wrong month. But it is an > interesting option and maybe misreading this only my personal problem > (and "--1" stands out a little bit, so it is recognizable). Technically, nothing stops us from interpreting 2024-05--1 as "last day of month 05". But the nice thing about interpreting it as previous month is that it works "magically" with non-Org Elisp APIs like `parse-time-string': (parse-time-string "2024-09--1") is able to parse the date. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at