From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uIeiJ7lbkWfFfgEAqHPOHw:P1 (envelope-from ) for ; Wed, 22 Jan 2025 20:57:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uIeiJ7lbkWfFfgEAqHPOHw (envelope-from ) for ; Wed, 22 Jan 2025 21:57:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b="HWb/QUYl"; dmarc=pass (policy=none) header.from=umass.edu; 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=1737579448; a=rsa-sha256; cv=none; b=Hba4G1TRdppunKRQeLyexAjoXW8npriDb3tOmK00Kdfzrztyh47v1VMYQpg/uVo47xNXMB IvH3Tm6VBBlvGexOb5tQ5fyCCoX3/B6qx0BJ4CTJOihITKhoMaq2MAEpYKzv28U2cAB+g+ D41ZuzYcK4CoRBaNMxll5FW5a1hTgSTv4jbccAaq2xuc07h3TSM8VJBdBuuNki4MAJ3P4z lJoW68fx9DD/naOWCzOHuKTDPRdNtr/0CRblJWTCSWYa9Bymnb9t45lriwXh725IFKcBFg RrIUVbX5c44mQlMyua4ADUHildmNgVUKrNJUj2YjP0hZjNu1Y0DTTMU3hLeOqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b="HWb/QUYl"; dmarc=pass (policy=none) header.from=umass.edu; 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=1737579448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=sHHVsryDJYK2WvzkoS4ubzaU83rAC/LFWkW7oil8aUo=; b=phL+NNrplJztCoD5laun85mWEDjZS8dsJSz43mz6d84x2xpVjT7kUJvFIhveIe9Zj5MBcu xejpjW7r2R0+4M6LBDuiru2QlkVFAb/gw8pZCQ6gAaWG5w8VdRn5hoSPqzt9ZW1wqvUAY1 H3mR5uCSoRhfdklqBskbPaW/WHcsmjsaFmlXAOHZdqILhK4oDJlBjatMnp7WDKb04HDNtQ Oatpo3hj0xA4vsjDwci7F1KvKIq7y5+cNAHDbuv/34J+VKT/+QVymes7LvTFMVHMbUdo3R fGIex3yucT5jY8whi4pvAFRoGOc6UKTMliyOVuRemw1hNu6oOBLaoB+LzCgFog== 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 AC66C4E4D for ; Wed, 22 Jan 2025 21:57:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tahlv-0005d2-Lm; Wed, 22 Jan 2025 15:56:23 -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 1tahll-0005XV-U5 for emacs-orgmode@gnu.org; Wed, 22 Jan 2025 15:56:16 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tahlj-0006wT-Jc for emacs-orgmode@gnu.org; Wed, 22 Jan 2025 15:56:13 -0500 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7b6eb531e13so9388885a.0 for ; Wed, 22 Jan 2025 12:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umass.edu; s=google; t=1737579357; x=1738184157; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=sHHVsryDJYK2WvzkoS4ubzaU83rAC/LFWkW7oil8aUo=; b=HWb/QUYlJCVqd4AIU0CDfbWfnWiD6Lk2NamImsMbKUJA32fHoeNBhS0DS17WrldsED N96OfctEDlPiysK2L8N6XyQL2rdO7JOiQNB+mSgZCXzMnd2NuzfvNgQLjpWafMrkHvM6 +k+MBpbykUmVIVuS6XdW3h/69Gv8Lq+9XC9sA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737579357; x=1738184157; h=content-transfer-encoding:mime-version:message-id:date:user-agent :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sHHVsryDJYK2WvzkoS4ubzaU83rAC/LFWkW7oil8aUo=; b=On2KVhmpbNf0VQ4xqCRhouRNZFzBfxKtLTdrcEArmjQWUxKt3+Xa4Ae7OsTXbOdUvj 2Xc0m1h8z9GfUN7xnU0JBw85DOQJH7wK2PbJdGmTf2xoPGpr83VkkLRUG2l9nMiOtTee PhSl4k2pumKxdkLSl94bZNwFeBs7oIAbM0CICV9+EDdCIVFF8/MQUY2P4bx9bdepCh9Z pJvoOYoqSEqOW16YcX+zwldZAq7DS/9dQz0tqwo3W0tkE788uJzx6cWOvQbKXCtLF3d6 rBrxKaWnvST74lRhl8sYzk0QjD2YB7i0LVVz9KDenIbknZEdA6RzAPewFwpC9v78pQGL VtAg== X-Gm-Message-State: AOJu0YwTvanSKH42Am41ZWecdEOZwCEWyVPJD7ZapQJt64W+vN4gg7o6 QzqQkR4kmE5/uDtO4vuIpOfWzEuNXIoXyfVk0a1GMIBu6Z+lQ+wHyNZaTtzje7+s75ZrApGHj1t K X-Gm-Gg: ASbGncsXskOgOxeq8yWatcE4sO4SRvxRTRJ84hN6jmhdv6qTzlriQQeIG+PwVIIyYz2 XOOCg1m0z5pDp60oYq+zrN8y/E2FitTJbdye20aBAJ/ZDoQj5BJpGz1IbRnk6t0T/lgUNoUpY+N PkLV/QSgmVG1EelEJWhXqRgwLNKrSIQ0X/INNX73J1PWaEHDBtVjROonKG5P0RhEKR/HZsKCNTZ 4+FjjA1TmeE9SnVINKX6PyC6rVaQ+I2JiN7ISi/NJJdQQcT3yWh046KJi3lpuBKcIiHpqwI0o+Q uGouxXK1BNOGcXbWIJL2MDnKforEYjdptQ== X-Google-Smtp-Source: AGHT+IEptkjz2pHZFQyHVhgn6vj58l1p2av/YZXL9jDkiG6Pf83O5mbBdsQVijKDv8B5SbvtQPk6+A== X-Received: by 2002:a05:620a:29c4:b0:7b6:6c46:55b with SMTP id af79cd13be357-7be631e723emr4399493685a.7.1737579357458; Wed, 22 Jan 2025 12:55:57 -0800 (PST) Received: from localhost (natp-128-119-202-7.wireless.umass.edu. [128.119.202.7]) by smtp.gmail.com with UTF8SMTPSA id d75a77b69052e-46e102fb234sm68742611cf.23.2025.01.22.12.55.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 12:55:57 -0800 (PST) From: =?utf-8?Q?Alejandro_P=C3=A9rez_Carballo?= To: emacs-orgmode@gnu.org Subject: [BUG] Delay cookies of the form "--1d" are not handled properly [9.6.15 (release_9.6.15 @ /opt/homebrew/Cellar/emacs-plus@29/29.4/share/emacs/29.4/lisp/org/)] User-Agent: mu4e 1.12.8; emacs 29.4 Date: Wed, 22 Jan 2025 15:55:56 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: permerror client-ip=2607:f8b0:4864:20::729; envelope-from=apc@umass.edu; helo=mail-qk1-x729.google.com 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, T_SPF_PERMERROR=0.01 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-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.41 X-Spam-Score: -3.41 X-Migadu-Queue-Id: AC66C4E4D X-TUID: c8L4c1JXVOcB Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ With point on an entry containing a scheduled timestamp like =E2=80=9C<2025= -01-22 Wed +1d --1d>=E2=80=9D, calling `(org-entry-put nil "SCHEDULED" (org= -entry-get nil "SCHEDULED"))' results in the removal of the delay cookie "-= -1d". This doesn=E2=80=99t happen if there is no repeater or if the delay c= ookie is of the form "-1d".=20 I=E2=80=99m assuming this is not the intended behavior. (As long as the cur= rent VAL of PROP is not problematic in some sense, I=E2=80=99d expect =E2= =80=9C(org-entry-put nil PROP (org-entry-get nil PROP))=E2=80=9D to leave V= AL intact.) As far as I can tell, the issue can be traced back to the way `org--deadlin= e-or-schedule' parses the =E2=80=98time=E2=80=99 argument: the variable =E2= =80=98repeater=E2=80=99 is set to =E2=80=9C+1d -1d=E2=80=9D if the TIME arg= ument to `org--deadline-or-schedule' is =E2=80=9C+1d -1d=E2=80=9D but set t= o =E2=80=9C+1d=E2=80=9D if it is =E2=80=9C+1d --1d=E2=80=9D. I=E2=80=99m guessing the wrinkle is in the regex here: =E2=80=9C(string-match "\\([.+-]+[0-9]+[hdwmy]\\(?:[/ ][-+]?[0-9]+[hdwmy]\\= )?\\)" time)=E2=80=9D but I=E2=80=99m not sure how to modify it. (The first captured group is =E2= =80=9C+1d -1d=E2=80=9D when the input string is e.g. =E2=80=9C<2025-01-22 W= ed +1d -1d>=E2=80=9D but =E2=80=9C+1d=E2=80=9D when it is =E2=80=9C<2025-01= -22 Wed +1d --1d>=E2=80=9D.) Emacs : GNU Emacs 29.4 (build 2, aarch64-apple-darwin21.6.0, NS appkit-211= 3.65 Version 12.7.4 (Build 21H1123)) of 2024-08-19 Package: Org mode version 9.6.15 (release_9.6.15 @ /opt/homebrew/Cellar/ema= cs-plus@29/29.4/share/emacs/29.4/lisp/org/)