0

Windows 10 (64 bit), Emacs 25.1

Suppose I have one org mode file. In this file I have my tasks with it's duration. After all my tasks was finish I calculate all tasks duration. I use command:

org-table-recalculate

It's work fine. See screenshot: enter image description here

As you can see the all tasks duration = 22.16 hours. OK!

But I also (sometime) need to calculate duration of specific task (e.g. Task-1144) Here screenshot:enter image description here

As you can see the duration of task Task-1144 = 3.50 + 0.08 + 3.50 = 7.08 hours.

So the question is: How in Emacs I can calculate duration of specific task? Thanks.

1

1 Answer 1

2

Here is one simple way of doing it manually.

The duration table is generated for you and it does not have a place for a record of individual tasks. Leave that table as it is and make a copy of it. Select all the internal lines of the new table, and run M-x keep-lines entering the task name into it. Next, place the cursor last cell, empty it, and press C-c + to calculate the column sum and paste it in. Repeat for each task. Add free text to document what you have done.

If you keep doing this more often, you might want to look into writing a code block in your preferred language that processes the table for answers.

3
  • It's work. To much manual work. I want to use (for this task) built-in capabilities of Emacs. Without write custom script on Elisp. Jun 6, 2017 at 13:00
  • You can not have built-in solution to your custom needs. This is Emacs so that you can create your own custom solutions.
    – Heikki
    Jun 6, 2017 at 15:32
  • If you want to know how to modify your process of creating the task duration table, you have to describe your current process and then ask the right question. Now you show the table and ask how to calculate something else from that table. That is the question I answered.
    – Heikki
    Jun 6, 2017 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.