From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Custom Agenda that partially skips entries Date: Sun, 10 Apr 2011 08:30:47 -0400 Message-ID: <87oc4eb85k.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=38938 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8tn6-00076s-Jy for emacs-orgmode@gnu.org; Sun, 10 Apr 2011 08:30:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8tn1-0000O2-As for emacs-orgmode@gnu.org; Sun, 10 Apr 2011 08:30:52 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:15248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8tn1-0000Ny-8j for emacs-orgmode@gnu.org; Sun, 10 Apr 2011 08:30:51 -0400 In-Reply-To: (Ido Magal's message of "Sat, 9 Apr 2011 22:58:25 -0700") 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: Ido Magal Cc: emacs-orgmode@gnu.org Ido Magal writes: > I'd appreciate assistance in constructing a custom agenda that > accomplishes the following (if possible): > > 1. Block of week's agenda. > 2. Block of "next" items that have no schedule ( items that don't > show up in block 1 ) > > This is my starting point: > > (setq org-agenda-custom-commands > =C2=A0=C2=A0 =C2=A0 =C2=A0'(("n" "Next tasks" > ((todo "next"))) > ("A" "agenda" > ((agenda "" ((org-agenda-ndays 7))) > =C2=A0(todo "next") > =C2=A0)) > )) > > The problem here is that I get duplicates because _all_ 'next' items > show up in the second block. =C2=A0I'd rather that only unscheduled items > showed there. > > I thought that this would do it, but it fails: > > (setq org-agenda-custom-commands > =C2=A0=C2=A0 =C2=A0 =C2=A0'(("n" "Next tasks" > ((todo "next"))) > ("A" "agenda" > ((agenda "" ((org-agenda-ndays 7))) > =C2=A0((todo "next") > =C2=A0 (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline > 'scheduled))) > =C2=A0)) > )) > > Thanks in advance. Hi Ido, In the second block set the variable org-agenda-todo-ignore-scheduled to either 'future or 'all to avoid listing items with a scheduled date. This is part of my block agenda for next tasks: (tags-todo "-WAITING-CANCELLED/!NEXT|STARTED" ((org-agenda-overriding-header "Available to Work on Now") (org-agenda-skip-function 'bh/skip-projects) (org-agenda-todo-ignore-scheduled 'future) (org-agenda-todo-ignore-deadlines 'future) (org-tags-match-list-sublevels t) (org-agenda-sorting-strategy '(effort-up category-keep)))) HTH, Bernt