Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get Emacs org-mode done statistics to filter up through non-todo headings?

Tags:

emacs

org-mode

How do I get org-mode DONE statistics to filter up through non-todo headings and update the statistics cookie?

I have an org-mode file that looks like this:

* <2013-03-06 Wed> [0%]
** work
*** training
**** TODO email Anne
**** DONE call Raymond
*** reports
**** DONE collect research
**** DONE compile data
*** white papers
**** TODO collect client files
*** sales
**** DONE email Wendy                         
** housekeeping
*** DONE go to post office! 

The parent headings are not TODO tasks; they're conceptual categories.

I want org-mode to calculate the % done statistics as I mark tasks DONE.

I tried setting org-hierarchical-todo-statistics to t but that didn't help.

like image 958
incandescentman Avatar asked Mar 07 '13 09:03

incandescentman


People also ask

How do you search in Org mode?

Org-mode uses Emacs' multi-occur command to search for any lines in the agenda files containing a regular expression. Simply type C-c a / followed by a word or regular expression and you will be presented a buffer with all lines that match the query, with each line conveniently linked to its original location.

How do I use Emacs in Org mode?

To save the document, either press the save icon, or press C-x C-s, call it 1.org. Emacs does not actually understand you are editing an Org document, yet. To enable Org mode on your current document, type M-x org-mode which will enable the Org mode on the current document. Those are minuses, not underscores.

How do you make a table in Org mode?

The easiest way to create a table is to directly type the "|" character at the beginning of a line, or after any amount of white space. This will put you in the first field of an atomic table. Once you've finished editing this cell, you can jump to the next one by pressing TAB .

What is Org mode doom Emacs?

Org is a system for writing plain text notes with syntax highlighting, code execution, task scheduling, agenda management, and many more. The whole idea is that you can write notes and mix them with references to things like articles, images, and example code combined with the output of that code after it is executed.


1 Answers

You've set the variable backwards, try:

(setq org-hierarchical-todo-statistics nil)

If you only want it to have effect on certain (a single) tree, use the property :COOKIE_DATA: recursive

From the variable definition:

org-hierarchical-todo-statistics is a variable defined in `org.el'.
Its value is nil
Original value was t

Documentation:
Non-nil means TODO statistics covers just direct children.
When nil, all entries in the subtree are considered.
This has only an effect if `org-provide-todo-statistics' is set.
To set this to nil for only a single subtree, use a COOKIE_DATA
property and include the word "recursive" into the value.
like image 99
Jonathan Leech-Pepin Avatar answered Sep 23 '22 11:09

Jonathan Leech-Pepin