emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: Incorrect duration format example in comments in 'org-duration.el'


From: Johnson
Subject: Bug: Incorrect duration format example in comments in 'org-duration.el' [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]
Date: Tue, 20 Apr 2021 18:31:19 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1

I'm contributing to an org file python parser to correctly parse durations.

I found the comments in org-duration.el (https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-duration.el#L31 <https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-duration.el#L31>), mentioning that `1d3h5min` is a valid duration format.

So, I expect the following should work:

M-x eval-expression <RET>
(org-duration-string-to-minutes "1d3h5min") <RET>

However, the following error occurred:

(error "Invalid duration format: \"1d3h5min\"")

I also tried adding "1d3h5min" as an EFFORT property, however, resulting in the same error. I assume that the comment should be fixed by removing this particular example? (Other examples work fine)

--
Sincerely,
Johnson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]