From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Stopping "done/cancelled" from showing in agenda view? Date: Mon, 09 Jun 2014 11:57:28 -0400 Message-ID: <8761ka6pp3.fsf@alphaville.bos.redhat.com> References: <87ha3uuu9v.fsf@skimble.plus.com> <87a99m6su6.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu1xG-0002gW-NQ for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 11:57:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu1xA-0002ht-0n for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 11:57:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:33091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu1x9-0002hg-Q0 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 11:57:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wu1x8-0002Sj-V0 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 17:57:42 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 17:57:42 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 17:57:42 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > Sharon Kimble 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