From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gJ5rKheg2GTjtgAASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 11:19:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iAhoKheg2GSzmgAAauVa8A (envelope-from ) for ; Sun, 13 Aug 2023 11:19: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 115A6498C7 for ; Sun, 13 Aug 2023 11:19:18 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=valentin-herrmann.de header.s=2022 header.b=BCZu4aGX; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691918359; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3Hl3yQRZGLbA9ibgrxm2x+DRb8RnC6kiOFJt5zkk+94=; b=RR62AEEg5L+gXg4UJx3ZU1drx3KMwJ0oxRrQ/feyjW3FgqXJkM/Cz7PLEVUE+O5L1A+P7L k24A0Hxwuu8rkAhInL5GI2V6e62Sd1DVx7YNefw9fbHdrt8QE4njw9df5n1IQB39t5rt8u w67IvLw8p58PH0tkZLgWVIhc6xDqFREADPQoCJPosezTBdvVKFQvKyFS6ZbTZ5TKK9/j6+ tpRD+GJoOpHO1025aEhdJz6J5FqU2AYjVOVCqeeXBgztgCDnU6dKKDwUlJq1GE+KvHgS0y zE036jCnlMK838uG5ynG7cGrV2xtSR8xJSWxGDOB8C8q3Ma7r9uj5GutykAfhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=valentin-herrmann.de header.s=2022 header.b=BCZu4aGX; 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=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691918359; a=rsa-sha256; cv=none; b=S9Ofqr1liVRUID535Frhoh7xjtnWoiRl7OQBX2Duud33p/fCXO3bT76U3Gl7ey7XLq6OCz 7ujWshAcdI146EzmR9/NkMzurvZihzthYlemtHzNrhQSxykKl9x2EZkOWq3goK9f14R94H tYXFS0n1P5Uj7ZVKmSMRN3AvC98ck6E28+lCM4SqTjIrIuXXljN2jzydhSrSOvuYPVNjb7 i/DaYlwDMeD18G4g76Ja4KRIXm6E5Pod77u0cAvrAAtq3LEqYn8JLBdmSCNPywnkSj/zQ0 Oz+h1zs+YgkI0IdgePYHWUoN2Ror6W7RCE2vjOzXyjdCRmUzksA0AUObVjmL+g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV7F1-0006fe-QK; Sun, 13 Aug 2023 05:18:31 -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 1qV7Ey-0006fH-PM for emacs-orgmode@gnu.org; Sun, 13 Aug 2023 05:18:28 -0400 Received: from mx00.shmerver.de ([88.99.4.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qV7Ex-0003Gp-6P for emacs-orgmode@gnu.org; Sun, 13 Aug 2023 05:18:28 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C8EE02A0073; Sun, 13 Aug 2023 11:18:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valentin-herrmann.de; s=2022; t=1691918301; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=3Hl3yQRZGLbA9ibgrxm2x+DRb8RnC6kiOFJt5zkk+94=; b=BCZu4aGX0kZmJkPa+9r3p+JdnggiMbvj2IayzIFq5bIvVb/oY56mw8nvEPXfIv5ev2WwvN A393R8Wc+uCodIIU0Rcxp5yIdHQq42qFAO0dGGbS2BOLYqXxOVaLyx5d1u4LsW3uKgHc4r qSTZ+oZGY/raNSasSJA4DtYsuf1EkkmNOR7J74T24Cg5ayDST2ThdUMwY4/siFn90hP7hL aKIzaofsLK8yhPDhflwHpI3QjKIKZW0T0IEwhVW6dcBPjY2y+OfWNelfm5wEk2DC7WtbWg jHr5ncp6NFXjHRiS3opRZlpn18Dujlc1PxsfGOLrZ3r4bpaK58ZUn+FK84ud3w== To: emacs-orgmode@gnu.org Cc: Valentin Herrmann Subject: [PATCH] org.el: Respect org-extend-today-until in timestamps with ++ Date: Sun, 13 Aug 2023 11:18:06 +0200 Message-Id: <20230813091806.1435284-1-me@valentin-herrmann.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Received-SPF: pass client-ip=88.99.4.159; envelope-from=me@valentin-herrmann.de; helo=mx00.shmerver.de X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-to: Valentin Herrmann From: Valentin Herrmann via "General discussions about Org-mode." 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-Queue-Id: 115A6498C7 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -5.19 X-Migadu-Spam-Score: -5.19 X-TUID: lAJ7WmMo7MyP * org.el (org-auto-repeat-maybe): Changed org-auto-repeat-maybe, so that switching a repeating todo with a timestamp of the form <… ++…> respects `org-extend-today-until'. --- lisp/org.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index c037b3ee0..d9cc9bee6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10099,9 +10099,10 @@ This function is run automatically after each state change to a DONE state." (- (org-today) (time-to-days time)) 'day))) ((equal "+" repeater-type) (let ((nshiftmax 10) - (nshift 0)) + (nshift 0) + (time-to-extend (seconds-to-time (* 3600 org-extend-today-until)))) (while (or (= nshift 0) - (not (time-less-p nil time))) + (not (time-less-p nil (time-add time-to-extend time)))) (when (= nshiftmax (cl-incf nshift)) (or (y-or-n-p (format "%d repeater intervals were not \ -- 2.40.1