[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-form
From: |
Nicolas Goaziou |
Subject: |
Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items |
Date: |
Wed, 11 Aug 2021 11:39:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
Anders Johansson <mejlaandersj@gmail.com> writes:
> org-duration-from-minutes was called with canonical = t, but without
> providing a corresponding format only using the canonical units. This
> broke if the user’s org-duration-format used other than the canonical
> units.
I think a proper fix would be to change `org-duration-from-minutes' so
it removes any unknown unit from what is provided from fmt or
`org-duration-format', and defaults to (special . h:mm) if nothing is
left.
WDYT?
Regards,
--
Nicolas Goaziou