From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sDckNV/Q2GSmWAEASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 14:45:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wH0QNF/Q2GQ5kQAAG6o9tA (envelope-from ) for ; Sun, 13 Aug 2023 14:45:19 +0200 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 1B24F6066D for ; Sun, 13 Aug 2023 14:45:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=R6V9i0Rs; 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=1691930719; 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=W73AyToltlFaIlx+lWMV3Kz43s5WpYjsWjvv1KiwNpU=; b=bqVUeSMPZ5gYlP3Bp3YlVtn1t+2R8KhDJSQmgtVYQBBpsntrj2jPiZVSeV+XOm7HbLi3J/ o010MhVMSivDgfNWkM4AD464gOeiTCL2ZFjxrS16LhQriNRT/xNopRS+KiDMIgqZWj9qmn ppxBxIeUyNhtOGTRtl/Y3Id5cgM8OvjR8MlKSBuwJFExZ0L+9JPqD0OHvACyfYWwkdFLoE dhRTRmTsrNa8A++YOLKNHcYNcgTyG/2VCUTJRBNyL59LuUl6xvm7mvQHxVVeiF7WcOT+2Y nHSoA0IrO/aONQ5S1Cs+AwwVhkQ+UawFlUa8aKilDEotk2+u8/KKmgyMrSn/iQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=R6V9i0Rs; 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-Seal: i=1; s=key1; d=yhetil.org; t=1691930719; a=rsa-sha256; cv=none; b=QDJiAGdBnVYfXunUKPEmn8z0ks2Do0F2HRKQinzgiKJ/k34khmE6Fr8djhy7PKBoLRKrko NOLI+Z/H6/fVlh3ord5OkIw8Sh3FTaPO/YyODFWsq0lUXjcpLoiWdvEakkAnwMghe0byNx 2KtD6+WQh3rgLAtIWTNZR/8sRPXB965Bl9UxMRCVvelEcWDkA9MEtWRg8iDVcVZlNNZdS0 8/7VjGIhxIOqw5EqaUizkXGrVvLFw4wE+gn7TDQXU9q6DsHANXn2kxfJzCebfkamPue0e8 GpnBUcjg+t12xx9p9EaKdO0Nh6vt3P7yIF7vklW3iXgs9caezViVqRItDb6jyQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVASO-0003aH-8T; Sun, 13 Aug 2023 08:44:32 -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 1qVASM-0003Zo-1G for emacs-orgmode@gnu.org; Sun, 13 Aug 2023 08:44:30 -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 1qVASI-0007yI-6k for emacs-orgmode@gnu.org; Sun, 13 Aug 2023 08:44:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 906FE240103 for ; Sun, 13 Aug 2023 14:44:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1691930663; bh=KBNBUHMqP2GcpyLXFO5/5T8HOs3h3EKODNY9O7TXjd0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=R6V9i0RsYczw1tyAMaR4qZTbkTWh3cOKYuNKBI+Z7wHQajRE+5RI/+LQuKwDnXVMM oLs27lgjl5dgHhBE22bMyDfFEmf54IPYPyTM3hbGIEYI/z5VfdjPThqABqtrFUfoFl ciDmcXcJZLS1LpVCUG30pIe4WuEeqEGP+gt1+97/Q4HOqh8cLR8s21synknkq0EJxi 46m3k7g6Y9HowjWRgqaXIfnQfMQm6sGfyphZdbxMcFq3KL571ElgcfR37B+0hEDrk6 b1tHge77gzx8Gyv2DZzoVKw/ai6w9jBJUib2dFjbtrMW+19uztB1dOZoQpMETqsmJ+ PWsy6Y8zn2Lgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RNy066t8Dz9rxB; Sun, 13 Aug 2023 14:44:22 +0200 (CEST) From: Ihor Radchenko To: "Valentin Herrmann via General discussions about Org-mode." Cc: Valentin Herrmann Subject: Re: [PATCH] org.el: Respect org-extend-today-until in timestamps with ++ In-Reply-To: <87il9jf7yw.fsf@localhost> References: <20230813091806.1435284-1-me@valentin-herrmann.de> <87il9jf7yw.fsf@localhost> Date: Sun, 13 Aug 2023 12:44:48 +0000 Message-ID: <87fs4nf6wv.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: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.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_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, 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-Spam-Score: -6.68 X-Migadu-Queue-Id: 1B24F6066D X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.68 X-TUID: p1gB/Z92o97c Ihor Radchenko writes: >> (while (or (= nshift 0) >> - (not (time-less-p nil time))) >> + (not (time-less-p nil (time-add time-to-extend time)))) > > And this compares "now" with year 1970. Will always return nil. Hmm. I somehow missed `time-add'. However, this is still fishy. What if we have something like <2023-08-13 2:00 ++8h>? `org-extend-today-until' should probably be ignored then. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at