emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Bug: org-columns--compute-spec tries to set CLOCKSUM property [9.4.4


From: Nicolas Goaziou
Subject: Re: Bug: org-columns--compute-spec tries to set CLOCKSUM property [9.4.4 (release_9.4.4-231-gf46925 @ /home/nick/elisp/org-mode/lisp/)]
Date: Wed, 07 Apr 2021 19:52:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hello,

Nick Dokos <ndokos@gmail.com> writes:

> The following MWE illustrates:
>
> --8<---------------cut here---------------start------------->8---
> #+COLUMNS: %25ITEM %6CLOCKSUM{:}
>
> * Goal 3
>   :PROPERTIES:
>   :ID: goal_3
>   :END:
>
>   #+BEGIN: columnview :hlines 4 :id goal_3 :maxlevel 3
>
>   #+END
>
> ** TODO Task 1
>    :LOGBOOK:
>    CLOCK: [2020-01-26 18:05]--[2020-01-26 Mon 19:16] =>  1:11
>    :END:
>
>    Task body
>
> *** TODO Subtask 1
>      :LOGBOOK:
>      CLOCK: [2020-01-28 Tue 15:45]--[2020-01-28 Tue 16:45] =>  1:00
>      :END:
>      
> --8<---------------cut here---------------end--------------->8---
>
>
> Starting with `emacs -Q foo.org', place the cursor on the `#+BEGIN:
> columnview' line and type `C-c C-c`. That produces a table (although
> the entries are wrong):
>
> --8<---------------cut here---------------start------------->8---
>   #+BEGIN: columnview :hlines 4 :id goal_3 :maxlevel 3
>   | ITEM      | CLOCKSUM |
>   |-----------+----------|
>   | Goal 3    |     2:11 |
>   |-----------+----------|
>   | Task 1    |     2:11 |
>   |-----------+----------|
>   | Subtask 1 |     1:00 |
>   #+END
> --8<---------------cut here---------------end--------------->8---

Why do you say the entries are wrong?

> But then doing it again fails with the following (elided) backtrace:
>
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (error "The CLOCKSUM property cannot be
> set with ‘org-entr...")

I pushed a fix for this error.

It doesn't solve the whole problem, tho. Doing it again will produce

  | ITEM      | CLOCKSUM |
  |-----------+----------|
  | Goal 3    | 1:00     |
  |-----------+----------|
  | Task 1    | 1:00     |
  |-----------+----------|
  | Subtask 1 | 1:00     |

This looks wrong.

Regards,
-- 
Nicolas Goaziou



reply via email to

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