From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 14 04:16:47 2025 Received: (at submit) by debbugs.gnu.org; 14 Jul 2025 08:16:47 +0000 Received: from localhost ([127.0.0.1]:59316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ubEMd-0007AF-7H for submit@debbugs.gnu.org; Mon, 14 Jul 2025 04:16:47 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36404) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ubDpd-0005A9-FR for submit@debbugs.gnu.org; Mon, 14 Jul 2025 03:42:38 -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 1ubDpN-0000Si-W8 for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2025 03:42:26 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ubDpJ-0006V3-NK for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2025 03:42:20 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-60c01b983b6so7400011a12.0 for ; Mon, 14 Jul 2025 00:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aheymans-xyz.20230601.gappssmtp.com; s=20230601; t=1752478932; x=1753083732; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=UOoGPGuVhnJNYBuZbQQaVQWxqwZ7gJIPq2My1juSk+s=; b=M9zZrPQ4zC93LuKMsEs8u2LWtO8Tf9EKY2/GdcujN3ClfbGWjayf0av80TY3+v/iYv dJlIAP4ibpBgxTNiKzry+N4LgT8ajF+IhgKt7QJxPyrq98PegoXKay4Az2gIdcOOlZVX IBy73SIYmFRmMrENXLnY85MSbZmPTA1DdsmO+tJNUFjiat3QBMY8mVNf2JwW025M8sIz Ea3RqxIqe1x9l1Ey0jLlUu1wvqrdMB6lEIs8P8OB1BoFw4OhTB6jyykjK/3SAahKDt1k LKH8tHGgjqw8mA2CzqNPLeIAYCRIQv4cFd0Eetz5RjKInuSzMaka88PV0QkDA07DHdZK wnDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752478932; x=1753083732; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UOoGPGuVhnJNYBuZbQQaVQWxqwZ7gJIPq2My1juSk+s=; b=br5bWIxHAoY8jlm847fY0K8aP3FSjHsSXaFUK4ybVaUkMOtFzjKif9afywgCYFbF/J FkgrYcheirv1NXvjOQEpjWnJ7WZuL2eS+6D9E8096fYfQH6BCTZ/OwASgK1nLIK+c3tS NcMIgoPE4cTia6k5oRXspDi6v90G0jRcnA9TbHHYwsHZPAvw/R0cPqnYwFj253yC1+eg +/nUQvpPPECwRR3RMLlW0YkQdLDray5xz1+4ErIvDz3WfqWN/gWfTOh4lw6BQPl9bUqp XDBwV6yNwlphxFOvodNiOkx63/B99+JZsa98JQhFlLCWY3jGPyN4Uuaii6sLs5RweFWr BYDg== X-Gm-Message-State: AOJu0Yzy4Z18vmBppX05Jpkegye6u1tcIsLspBxj0T5Zv6MjescncYvL vua36hLlANS/3WyV1S3qecgFxNMn+tI27kBcaczxiKxXtgxZQLZYTDJDZ2tob/OPR+DsTNkCabm NO3XH3D4DnQ== X-Gm-Gg: ASbGncshtQV6bFOe9upg/EGdW1ItkyDgQ+s5pfwiOTDjHxQk0BjwxdMKE0dHmc05dB7 OInTkV+gspAxVcHPB75WY/05GFUFuw1ppVXLXpXl+A1eRfzBjlu9s9dsx2rhw/gkgyUivOgsReh dPRatba88Bdzp4RFhRx1lrKHcERqt8VO/KpVIz/diSa5AElLNRwzR41vAx5f7r7mw0UcuP+WlxS 35OOtwh0k/yinCLDd9FoubSwIWwNWtu4J91uX75t42RWdEF7HeB6eI2oViYtiSCE4ZJxdfbMOwP brhDC+dc8VD/ITjPp30+qDag1er+CanfIpOLX9xW45syJct3i988dp3WKjdc1zNcBdXPrBBy/lY emeXesM5SR17Rbm6ry7S+ X-Google-Smtp-Source: AGHT+IGyLXsE3de70RFNZrH1VlbhfMAfeAsokgkwO8GASMSu1GFIv7Qq0aTzqvaYGgckDppLje4kQQ== X-Received: by 2002:a05:6402:518f:b0:608:40bf:caed with SMTP id 4fb4d7f45d1cf-611e62da353mr10611686a12.7.1752478931769; Mon, 14 Jul 2025 00:42:11 -0700 (PDT) Received: from localhost ([2a02:a03f:96de:c400:6f8c:710:f5ab:908d]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-611c9796432sm5670761a12.73.2025.07.14.00.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jul 2025 00:42:11 -0700 (PDT) From: Arthur Heymans To: bug-gnu-emacs@gnu.org Subject: 30.1; org-timer-set-timer evaluates "0:0x" effort into x seconds in org agenda, while org-mode file it works fine with x minutes X-Debbugs-Cc: Date: Mon, 14 Jul 2025 09:42:10 +0200 Message-ID: <87a557qkvh.fsf@aheymans.xyz> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=arthur@aheymans.xyz; helo=mail-ed1-x52c.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FROM_SUSPICIOUS_NTLD=0.5, FROM_SUSPICIOUS_NTLD_FP=1.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello I have an issue with org-timer-set-timer when used on a node with an effort set of the format "0:0x". The intended behavior is that this is evaluated into a timer of x minutes. This works fine in an o [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 14 Jul 2025 04:16:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hello I have an issue with org-timer-set-timer when used on a node with an effort set of the format "0:0x". The intended behavior is that this is evaluated into a timer of x minutes. This works fine in an org-mode buffer. However if I try to do the same in a calendar buffer the timer gets set to x seconds. The follow hack seems to work around the issue diff --git a/lisp/org/org-timer.el b/lisp/org/org-timer.el index 9d4e350429b..76ccd938a44 100644 --- a/lisp/org/org-timer.el +++ b/lisp/org/org-timer.el @@ -435,7 +435,7 @@ using three \\[universal-argument] prefix arguments." (minutes (or (and (numberp opt) (number-to-string opt)) (and (not (equal opt '(64))) effort-minutes - (number-to-string effort-minutes)) + (format "%d:00" effort-minutes)) (and (consp opt) default-timer) (and (stringp opt) opt) (read-from-minibuffer -- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 14 07:30:19 2025 Received: (at 79012) by debbugs.gnu.org; 14 Jul 2025 11:30:19 +0000 Received: from localhost ([127.0.0.1]:60201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ubHNy-0003Ea-Gx for submit@debbugs.gnu.org; Mon, 14 Jul 2025 07:30:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39994) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ubHNp-0002U6-PA for 79012@debbugs.gnu.org; Mon, 14 Jul 2025 07:30:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ubHNi-0007Uh-Ft; Mon, 14 Jul 2025 07:30:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fjWFvOj3KHIkgkCfOZ9G4SX/Fi7iXeKyec5i0jrU9aM=; b=ZQ7DMT3VEmjl j8qHDDGMbYeiNn5KVwsXLwjI6/fu3aWLWxpUkIRupUbP4vYujuPxd5yYP/9dYufPqbiZyxuTNdxdh yBUyHih/0QFggqMnniH+q6oJ+jK1peLbEXNliJPEwQZmBcG7R4ZwO6pOV0KJxNVnFxwmqtXvpZZpF M0QzNaOktmfitSOmKuwGJhIdr/2Bi4RzKwIBdihF5gTu5ElexcPZzYBTHmzP2y5poUZBzLCmktMPU uq6f0b0qusdKk8pRMNj+64pGw27yCx2BXIFT2xQ9LlOhMBQr96PW/HGubaA/Bm+Ns/D31oPr3fzip JAN/pLHlIxiK90ReVeMbng==; Date: Mon, 14 Jul 2025 14:29:57 +0300 Message-Id: <865xfvc8ne.fsf@gnu.org> From: Eli Zaretskii To: Arthur Heymans In-Reply-To: <87a557qkvh.fsf@aheymans.xyz> (message from Arthur Heymans on Mon, 14 Jul 2025 09:42:10 +0200) Subject: Re: bug#79012: 30.1; org-timer-set-timer evaluates "0:0x" effort into x seconds in org agenda, while org-mode file it works fine with x minutes References: <87a557qkvh.fsf@aheymans.xyz> X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 79012 Cc: 79012@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > From: Arthur Heymans > Date: Mon, 14 Jul 2025 09:42:10 +0200 > > Hello > > I have an issue with org-timer-set-timer when used on a node with an > effort set of the format "0:0x". The intended behavior is that this is > evaluated into a timer of x minutes. This works fine in an org-mode > buffer. > > However if I try to do the same in a calendar buffer the timer gets set > to x seconds. > > The follow hack seems to work around the issue > > diff --git a/lisp/org/org-timer.el b/lisp/org/org-timer.el > index 9d4e350429b..76ccd938a44 100644 > --- a/lisp/org/org-timer.el > +++ b/lisp/org/org-timer.el > @@ -435,7 +435,7 @@ using three \\[universal-argument] prefix arguments." > (minutes (or (and (numberp opt) (number-to-string opt)) > (and (not (equal opt '(64))) > effort-minutes > - (number-to-string effort-minutes)) > + (format "%d:00" effort-minutes)) > (and (consp opt) default-timer) > (and (stringp opt) opt) > (read-from-minibuffer > -- Thanks, but please report this to Org developers.