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

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arthur Heymans <arthur <at> aheymans.xyz>
Cc: 79012 <at> debbugs.gnu.org
Subject: 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 2 days ago.

Previous Next


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