From: Rainer Stengele <rainer.stengele@online.de>
To: emacs-orgmode@gnu.org
Subject: question about performance when having multiple todo blocks from the same org files ..
Date: Mon, 13 Jan 2014 14:02:54 +0100 [thread overview]
Message-ID: <lb0o5h$2pe$1@ger.gmane.org> (raw)
Hi.
I have a complex agenda function as can be seen below.
Beside an agenda call I do want to show todos separated in blocks, grouped by priority or tags.
I want to show my prio A todos as one block before showing the rest of the todos sorted by prio.
I was wondering if Org does run through all the org files again and again in order to collect the data wanted
or if there is something like a cache is being filled when running through all buffers, collects all todos and then groups, sorts
and is availble for printing out whats wanted.
Thank you for a reply from someone who knows the internals.
Rainer
Org-mode version 8.2.2 (release_8.2.2-193-gf10166)
...
("01" "agenda - prio A,B todos - sorted prio up - today" ;;
(
;; show ONGOING todos first, but only if unscheduled, skip if scheduled
(tags-todo "ONGOING"
((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled))
(org-agenda-overriding-header "ONGOING todos: ")))
(agenda "todays agenda"
(
;; (org-agenda-skip-function
;; (lambda nil
;; (org-agenda-skip-entry-if 'regexp ":ONGOING:")))
;; (org-agenda-skip-entry-if 'regexp ":ONGOING:")))
(org-agenda-span 'day)
(org-agenda-start-with-log-mode t)
(org-agenda-start-with-clockreport-mode t)
(org-agenda-overriding-header "Today's Agenda")))
(alltodo "!!! TODOs Prio A - skip ONGOING todos!!!"
(
(org-agenda-skip-function (lambda nil
(or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")
(org-agenda-skip-entry-if 'regexp ":ONGOING:")
(org-agenda-skip-entry-if 'scheduled 'deadline ))))
(org-agenda-overriding-header "!!! TODOs prio A - skip ONGOING todos: !!!")
))
(alltodo "todos Prio B til D - skip ONGOING todos"
(
(org-agenda-skip-function (lambda nil
(or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#B\\|#C\\|#D\\]")
(org-agenda-skip-entry-if 'regexp ":ONGOING:")
(org-agenda-skip-entry-if 'scheduled 'deadline ))))
(org-agenda-overriding-header "All todos prio B til D - skip ONGOING todos: ")
))
)
((org-agenda-sorting-strategy '(time-up priority-down todo-state-up))))
...
next reply other threads:[~2014-01-13 13:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 13:02 Rainer Stengele [this message]
2014-01-17 9:14 ` question about performance when having multiple todo blocks from the same org files Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lb0o5h$2pe$1@ger.gmane.org' \
--to=rainer.stengele@online.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).