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
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
--
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.