GNU bug report logs - #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

Previous Next

Package: emacs;

Reported by: Arthur Heymans <arthur <at> aheymans.xyz>

Date: Mon, 14 Jul 2025 08:17:01 UTC

Severity: normal

Found in version 30.1

To reply to this bug, email your comments to 79012 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79012; Package emacs. (Mon, 14 Jul 2025 08:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arthur Heymans <arthur <at> aheymans.xyz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 14 Jul 2025 08:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arthur Heymans <arthur <at> aheymans.xyz>
To: bug-gnu-emacs <at> 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
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
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79012; Package emacs. (Mon, 14 Jul 2025 11:31:01 GMT) Full text and rfc822 format available.

Message #8 received at 79012 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arthur Heymans <arthur <at> aheymans.xyz>
Cc: 79012 <at> debbugs.gnu.org
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
Date: Mon, 14 Jul 2025 14:29:57 +0300
> From: Arthur Heymans <arthur <at> aheymans.xyz>
> 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.




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.