[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix bug assuming canonical duration units in org-agenda-format-i
From: |
Anders Johansson |
Subject: |
[PATCH] Fix bug assuming canonical duration units in org-agenda-format-items |
Date: |
Mon, 9 Aug 2021 16:41:37 +0200 |
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.
---
lisp/org-agenda.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index b4e5547d7..e78ab6b72 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6749,7 +6749,7 @@ (defun org-agenda-format-item (extra txt
&optional with-level with-category tags
(org-duration-from-minutes
(+ (org-duration-to-minutes s1 t)
org-agenda-default-appointment-duration)
- nil t)))
+ '(("d" (special . h:mm))) t)))
;; Compute the duration
(when s2
(setq duration (- (org-duration-to-minutes s2)
--
2.32.0
- [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items,
Anders Johansson <=