emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Zang <christian.zang@googlemail.com>
To: Manish <mailtomanish.sharma@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Custom Agenda View for Projects
Date: Tue, 15 Mar 2011 22:35:31 +0100	[thread overview]
Message-ID: <AANLkTiks5PfhNLDWHRrBCF4wiAYRjFnQfZPDvm4GPNCT@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin-uzwkjAJn_ENNjja_oNPGRSo0wWnMN=Aze9vC@mail.gmail.com>

2011/3/15 Christian Zang <christian.zang@googlemail.com>:
> 2011/3/15 Manish <mailtomanish.sharma@gmail.com>:
>> On Tue, Mar 15, 2011 at 11:54 AM, Christian Zang wrote:
>>> 2011/3/15 Manish:
>>>> On Tue, Mar 15, 2011 at 12:54 AM, Christian Zang wrote:
>>>>> Dear all,
>>>>>
>>>>> I might be overlooking something very obvious, but I cannot find the
>>>>> solution: I have various org files, in which "projects" (anything
>>>>> requiring more than one action step...) are first level headings
>>>>> marked using the TODO kwd PROJ. If I tell my agenda to list all items
>>>>> with kwd PROJ (either via C-a T PROJ or as a custom agenda view via
>>>>> "tags-todo "LEVEL=1""), only the ones without siblings are returned.
>>>>> I've looked into "org-tags-match-list-sublevels" but this is not quite
>>>>> the right thing to calibrate...
>>>>
>>>> Could you show a sample outline please?
>>>>
>>>> --
>>>> Manish
>>>>
>>>
>>> Sure, here is a sample outline:
>>>
>>> * PROJ Write Proposal
>>>
>>> ** TODO write introduction
>>>
>>> * PROJ Clean Lab
>>>
>>> * PROJ Get Birthday Present
>>>
>>> ** TODO get dad's hat size
>>>
>>> From that list, only "Clean Lab" will show up in the list of projects.
>>> Below are my settings regarding custom agenda views:
>>>
>>> (setq org-agenda-custom-commands
>>>      '(("W" "Weekly Review"
>>>         ((agenda "" ((org-agenda-ndays 7)))
>>>          (stuck "") ;; review stuck projects
>>>          (todo "PROJ") ;; review all projects
>>>          (todo "SDMB") ;; review someday/maybe items
>>>          (todo "WAIT"))) ;; review waiting items
>>>
>>>        ("P" "Projects" tags-todo "LEVEL=1"
>>>         ((org-agenda-overriding-header "List of Projects")))
>>>
>>>        ("O" "Today-View"               ; like OF "due & flagged"
>>>         ((agenda "Due or scheduled within next week"
>>>                  ((org-agenda-ndays 7)
>>>                   (org-agenda-start-on-weekday nil)
>>>                   (org-agenda-overriding-header "\nDue or scheduled
>>> within next week\n------------------\n")
>>>                   ))
>>>                                        ; due within next week
>>>          (tags-todo "+PRIORITY=\"A\""
>>>                     ((org-agenda-overriding-header "\nHigh
>>> priority\n------------------\n")))
>>>                                        ; pseudo-flagged items
>>>          ))
>>>        ))
>>>
>>> Neither "W" nor "P" shows all projects, but rather only the ones
>>> without siblings. This is what I use as TODO kwds:
>>>
>>> (setq org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)")
>>>                          (sequence "STRT(s!)" "|")
>>>                          (sequence "|" "CNCL(c@!)")
>>>                          (sequence "FXME(f)" "|" "FIXD(x!)")
>>>                          (sequence "PROJ(p!)" "PRSC(u)" "PROH(o)" "|"
>>> "PRDN(r!)" "PRCL(o@/!)")
>>>                          (sequence "LIST(l)" "|")
>>>                          (sequence "SDMB(m)" "|")))
>>>
>>> And these are the agenda-relevant settings in custom.el:
>>>
>>>  '(org-agenda-compact-blocks t)
>>>  '(org-agenda-dim-blocked-tasks (quote invisible))
>>>  '(org-stuck-projects (quote ("+LEVEL=1/+PROJ-PRDN-PROH-SDMB" ("TODO"
>>> "NEXT" "FXME" "STRT") nil "")))
>>>
>>
>> Here's what I did:
>>
>> I started Emacs with -Q, eval'ed the variables and custom agenda
>> commands you sent set up the org-agenda-files and ran the custom
>> commands `W' and `P'.  Both listed all the items marked PROJ where
>> they should have.  So it worked for me.. I am not sure what could be
>> wrong in your setup.  I know it's a non-answer but FWIW, removing
>> everything and add bits and pieces in steps could help.
>>
>> HTH
>> --
>> Manish
>>
>
> Thanks, Manish,
>
> I'll try that. Thanks a lot for your efforts!
>
> Best,
> Christian
>

Update: I found the culprit in "org-enforce-todo-dependencies", set to
nil and all projects labeled as PROJ are displayed again. Have to
think about why this affects the agenda views in that way...

thanks for listening,
Christian

  reply	other threads:[~2011-03-15 21:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14 19:24 Custom Agenda View for Projects Christian Zang
2011-03-15  4:26 ` Manish
2011-03-15  6:24   ` Christian Zang
2011-03-15 17:12     ` Manish
2011-03-15 20:56       ` Christian Zang
2011-03-15 21:35         ` Christian Zang [this message]
2011-03-16 19:24           ` Jason McBrayer
2011-03-18 15:03             ` Bernt Hansen
2011-03-17 22:55           ` Josh Berry
2011-03-18 17:57             ` Jason McBrayer
2011-03-18 19:31               ` Josh Berry
2011-03-19  8:22                 ` Christian Zang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTiks5PfhNLDWHRrBCF4wiAYRjFnQfZPDvm4GPNCT@mail.gmail.com \
    --to=christian.zang@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mailtomanish.sharma@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).