Mamoru Miura <mamo...@gmail.com> writes: > ... > Steps to see this issue: > > 1. run M-x org-agenda > 2. type "a" to show "agenda for current week or day" > 3. run M-x org-agenda-columns (C-c C-x C-c)
Thanks for providing the details! I have also found the relevant thread. It was not immediately visible because of my MUA settings. > - (get-text-property (point) 'duration) > - (propertize (org-duration-from-minutes > - (get-text-property (point) 'duration)) > - 'face 'org-warning)) > + (when-let* ((formatted-item > (org-agenda-format-item nil (org-get-entry) nil nil nil t)) > + (duration-string (get-text-property 0 > 'duration formatted-item))) > + (propertize (org-duration-from-minutes > duration-string) 'face 'org-warning))) I cannot say that I like calling org-agenda functions, but I cannot propose anything better either (agenda code sucks...). Ideally, we should factor out the duration calculation from the depths of the agenda code into a separate function and then use it. But I am not even sure if this calculation is always same in different agenda types... For the code, it will err when the time range is located inside the headline and org-agenda-search-headline-for-time is set to non-nil (which it is, by default) Best, Ihor