From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Magal Subject: Re: Custom Agenda that partially skips entries Date: Sun, 10 Apr 2011 16:28:42 -0700 Message-ID: <795B0C26F85C48249F7A6A51F17F6F94@gmail.com> References: <87oc4eb85k.fsf@norang.ca> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="4da23d2a_66334873_11f59" Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=36712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q943l-00069h-IR for emacs-orgmode@gnu.org; Sun, 10 Apr 2011 19:28:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q943k-0001cd-5F for emacs-orgmode@gnu.org; Sun, 10 Apr 2011 19:28:49 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:48261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q943k-0001cZ-0V for emacs-orgmode@gnu.org; Sun, 10 Apr 2011 19:28:48 -0400 Received: by iyf13 with SMTP id 13so6852445iyf.0 for ; Sun, 10 Apr 2011 16:28:47 -0700 (PDT) In-Reply-To: <87oc4eb85k.fsf@norang.ca> 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: Bernt Hansen Cc: Ido Magal , emacs-orgmode@gnu.org --4da23d2a_66334873_11f59 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Perfect. Thanks! -- Ido Magal Sent with Sparrow On Sunday, April 10, 2011 at 05:30 , Bernt Hansen wrote: > 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 > > '(("n" "Next tasks" > > ((todo "next"))) > > ("A" "agenda" > > ((agenda "" ((org-agenda-ndays 7))) > > (todo "next") > > )) > > )) > > > > The problem here is that I get duplicates because _all_ 'next' items > > show up in the second block. I'd rather that only unscheduled items > > showed there. > > > > I thought that this would do it, but it fails: > > > > (setq org-agenda-custom-commands > > '(("n" "Next tasks" > > ((todo "next"))) > > ("A" "agenda" > > ((agenda "" ((org-agenda-ndays 7))) > > ((todo "next") > > (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline > > 'scheduled))) > > )) > > )) > > > > 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 > --4da23d2a_66334873_11f59 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Perfect. Thanks=21

-- 
Ido Magal
Sent with Sparrow
=20

On Sunday, April 10, 2= 011 at 05:30 , Bernt Hansen wrote:

Ido Magal <ido=40idomagal.com> 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 =22next=22 items that have no schedule = ( items that don't
show up in block 1 )

This is my starting poi= nt:

(setq org-agenda-custom-commands
      = '((=22n=22 =22Next tasks=22
((todo =22next=22)))
(=22A=22 =22agenda= =22
((agenda =22=22 ((org-agenda-ndays 7)))
 (todo =22next=22)=
 ))
))

The problem here is that I get duplicates becau= se =5Fall=5F 'next' items
show up in the second block.  I'd rathe= r that only unscheduled items
showed there.

I thought that this= would do it, but it fails:

(setq org-agenda-custom-commands
&n= bsp;     '((=22n=22 =22Next tasks=22
((todo =22next=22)= ))
(=22A=22 =22agenda=22
((agenda =22=22 ((org-agenda-ndays 7))) ((todo =22next=22)
  (org-agenda-skip-function '(org-agend= a-skip-entry-if 'deadline
'scheduled)))
 ))
))

Thank= s in advance.

Hi Ido,

In the second bloc= k 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 =22-WAITING-CANC= ELLED/=21NEXT=7CSTARTED=22
((org-agenda-overriding-header =22Av= ailable to Work on Now=22)
(org-agenda-skip-function 'bh/skip-= projects)
(org-agenda-todo-ignore-scheduled 'future)
= (org-agenda-todo-ignore-deadlines 'future)
(org-tags-match-li= ist-sublevels t)
(org-agenda-sorting-strategy
'(effort-up= category-keep))))

HTH,
Bernt
=20 =20 =20 =20
=20

--4da23d2a_66334873_11f59--