From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Showing scheduled blocked tasks [SEC=UNCLASSIFIED] Date: Mon, 15 Mar 2010 14:54:33 +0100 Message-ID: <3902E439-068D-43D6-9B29-BC409CFD41C5@gmail.com> References: <2E4514CA-FE52-4608-B0A7-B2D99C2C0591@dsto.defence.gov.au> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrAkj-0001pR-2q for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 09:54:41 -0400 Received: from [140.186.70.92] (port=42751 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrAkg-0001ow-Ss for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 09:54:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrAkf-0007Cm-CO for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 09:54:38 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:42015) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrAkf-0007Cg-7c for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 09:54:37 -0400 Received: by ewy8 with SMTP id 8so945136ewy.8 for ; Mon, 15 Mar 2010 06:54:35 -0700 (PDT) In-Reply-To: <2E4514CA-FE52-4608-B0A7-B2D99C2C0591@dsto.defence.gov.au> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Phillips Cc: emacs-orgmode@gnu.org On Mar 15, 2010, at 1:23 AM, Matthew Phillips wrote: > On 12/03/2010, at 3:29 AM, Carsten Dominik wrote: > > > >> On Mar 11, 2010, at 9:43 AM, Matthew Phillips wrote: >> >>> What I mean is setting it as an option in the custom commands does >>> not seem to work, e.g. see list line in: >>> >>> (setq org-agenda-custom-commands >>> ... >>> ("d" "Daily Action List" >>> ((agenda "" ((org-agenda-ndays 1) >>> (org-agenda-sorting-strategy >>> (quote ((agenda time-up priority-down tag-up) ))) >>> (org-deadline-warning-days 7))) >>> (tags "TODO=\"STARTED\"+SCHEDULED=\"\"+DEADLINE=\"\"" >>> ((org-agenda-dim-blocked-tasks 'invisible))) >>> ... >>> >>> The org-agenda-dim-blocked-tasks on the generated "tags" view does >>> not get honoured. It *does* get honoured as a setting one level >>> "higher", i.e. as a local setting to the whole org-agenda-custom- >>> commands block, but that's not very useful here. >> >> OK, I see now what is happening here. The dimming of blocked tasks >> is >> done only once, at the very end, when the agenda has been made. >> And that is outside the scope of the local options. >> >> You can use a normal (custom) agenda command and do the setting >> there. Or you can use the global options for the block agenda to >> set this for the entire block agenda. But not for a single segment >> in a bloc agenda, I am afraid. >> >> Changing this would be significant work, and I don't want to do >> this based on a single use case. > > OK, I can understand that. > > So, is there any way I can use a custom skip function in the TODO > block to remove blocked tasks? Is there a way of getting the blocked > status of a task from such a function? Yes, BLOCKED is a virtual property which does this. I think you can just do a tags/property/todo search like this "-BLOCKED/+TODO" Or you can test for the BLOCKED property in a user-written skip function. - Carsten