Nick Dokos <ndo...@gmail.com> writes:

> Sharon Kimble <boudic...@skimble.plus.com> writes:
>
>> This is probably an easy one to answer, but I can't even think of
>> how to query google with it. And I can't see how to do it in the org
>> manual either!
>>
>> But, how do you stop a "done", or "cancelled" item from appearing in
>> the agenda view please? Is there some code that will auto-magically
>> do it for me please?
>>
>
> Set org-agenda-skip-scheduled-if-done to t perhaps? And similarly
> for org-agenda-skip-deadline-if-done. Not sure whether that will do
> anything for CANCELLED though.
>

Assuming that CANCELLED is a DONE state - see

  (info "(org) workflow states")

for details - the above should work for CANCELLED as well. E.g.

--8<---------------cut here---------------start------------->8---
#+TODO: TODO | DONE CANCELLED
* TODO foo
SCHEDULED: <2014-06-09 Mon>

* DONE bar
SCHEDULED: <2014-06-09 Mon>

* CANCELLED baz
SCHEDULED: <2014-06-09 Mon>
--8<---------------cut here---------------end--------------->8---

then the agenda shows all three if org-agenda-skip-scheduled-if-done is
nil, but shows only `foo' if it is set to t.

As a more general question, should the default be t for all three of the
org-agenda-skip-*-if-done variables? It seems that most people prefer
that behaviour. Perhaps we have gone around this before, but I didn't
check the archives.

Nick


Reply via email to