From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: Finding old appointments
Date: Mon, 26 Jul 2010 09:32:38 +0200 [thread overview]
Message-ID: <87iq42wve1.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 87lj8z8iee.fsf@fastmail.fm
Matt Lundin <mdl@imapmail.org> writes:
>> Well, basically I'm just looking for a search facility that shows me
>> an agenda view with all entries that contain only timestamps before
>> today and no pending todos, so that I can use the agenda commands to
>> act on them. Some will be deleted, others archived.
>
> Here's an example of an agenda view that would bring up all old,
> active timestamps marked DONE:
>
> C-c a m [RET] TIMESTAMP<"<today>"+TODO="DONE"
Oh, nice. I've never use this search, but it is very useful. Simply by
searching for a timestamp before today does already help me.
Additionally, playing around with it helped me being even more
specific. So what I want to get is an agenda with
- headlines that contain only past timestamps and are closed TODOs (if
they are TODOs), that is, any TODO state after the | in
`org-todo-keywords'
- the same applies to all children of that entry, recursively
- the agenda should only list the top-most entries for which these
properties hold
Example:
* Project X
** TODO foo
SCHEDULED: <2010-06-22 Tue>
** Bla bla bla
*** DONE baz
DEADLINE: <2010-06-01 Tue>
*** Meeting with Hugo
<2010-06-04 Fri>
So in that case, the search should list only the "Bla bla bla" entry,
because it's the top-most entry where all children are past and done.
The "TODO foo" is not recognized, because although its timestamp is in
the past, it has an open TODO state. (And because of that, the parent
of both entries "Project X" doesn't match the search criteria.)
> (If I understand the question correctly...) The variable
> org-stuck-projects (see the docstring) can be tweaked to identify
> subtrees that match your criteria.
Although I don't use the stuck projects functionality right now, I don't
want to abuse it for something different.
> A custom skip function might also be useful here.
>
> (info "(org) Special agenda views")
Thanks, I'll read that up.
Bye,
Tassilo
next prev parent reply other threads:[~2010-07-26 7:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 20:26 Finding old appointments Tassilo Horn
2010-07-24 21:31 ` Sébastien Vauban
2010-07-25 18:13 ` Tassilo Horn
2010-07-25 19:34 ` Matt Lundin
2010-07-26 7:32 ` Tassilo Horn [this message]
2010-07-26 9:54 ` David Maus
2010-07-26 11:46 ` Tassilo Horn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iq42wve1.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.