emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jean-Marie Gaillourdet <jmg@gaillourdet.net>
To: emacs-orgmode@gnu.org
Subject: Not a bug, but ...
Date: Sun, 27 Jun 2010 11:41:01 +0200	[thread overview]
Message-ID: <7B46216F-526B-448A-9518-31F0034C496B@gaillourdet.net> (raw)
In-Reply-To: <877hlmkgpq.fsf@fastmail.fm>

Hi,

On 25.06.2010, at 22:19, Matt Lundin wrote:

> Jean-Marie Gaillourdet <jmg@gaillourdet.net> writes:
> 
>> I've been trying to make org-stuck-projects work as advertised, but
>> wasn't successfull.
>> 
>> But let's start with what I'd like to achieve. My projects are marked
>> with a todo keyword PROJECT. I would like to consider every project
>> which has neither a task with keyword TODO nor a task with keyword
>> STARTED as stuck. Especially, this means a project may contain tasks
>> with active todo keywords, e.g. DELEGATED or WAITING, but it is still
>> considered stuck.
>> 
>> After reading the manual and the doc-string of org-stuck-projects. I
>> think the following value should achieve this.
>> 
>> (setq org-stuck-projects '("/PROJECT" ("TODO" "STARTED") nil ""))
>> 
>> But every sub task of the project with an active todo keywords make a
>> project unstuck. I have the impression the list ("TODO" "STARTED") is
>> completely ignored. The following project should appear on the list of
>> stuck projects, but it does not.
>> 
>> * PROJECT Testprojekt                                           :inproject:
>> *** DELEGATED a delegated subtask
>> 
> 
> I cannot replicate this. Using the setting above, I called
> org-agenda-list-stuck-projects on the following file:
> 
> --8<---------------cut here---------------start------------->8---
> #+TODO: TODO PROJECT DELEGATED WAITING | DONE
> 
> * PROJECT Testprojekt 						  :inproject:
> ** DELEGATED a delegated subtask
> * PROJECT Another test
> ** TODO A todo 				
> --8<---------------cut here---------------end--------------->8---
> 
> The agenda yielded the correct results:
> 
> --8<---------------cut here---------------start------------->8---
> List of stuck projects: 
>  test:       PROJECT Testprojekt                                    :inproject:
> --8<---------------cut here---------------end--------------->8---


Finally, I've understood the problem. Testprojekt does not appear on my stuck projects list, because I've enabled org-enforce-todo-dependencies and I use (org-agenda-dim-blocked-tasks 'invisible). Testprojekt is just hidden in the stuck projects, as is every project with any kind of non-closed sub task. Perhaps org-agenda-list-stuck-projects should ignore the value of org-agenda-dim-blocked-tasks in general?

Currently, I use the following function to circumvent the hiding of my stuck projects.

(defun jmg/stuck-projects ()
 (interactive)
 (let ((org-agenda-dim-blocked-tasks nil))
   (org-agenda-list-stuck-projects)
   ))

Is it possible to bind it to the standard agenda shortcut C-c a # ? Or to achieve the same effect just with special agenda command configuration?

Thanks, for your help.

Regards,
Jean

  parent reply	other threads:[~2010-06-27  9:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-25 15:05 Bug: Definition of stuck projects [6.36trans (release_6.36.293.g2e73c)] Jean-Marie Gaillourdet
2010-06-25 20:19 ` Matt Lundin
2010-06-27  7:57   ` Jean-Marie Gaillourdet
2010-06-27  9:41   ` Jean-Marie Gaillourdet [this message]
2010-06-27 12:21     ` Not a bug, but Bernt Hansen
     [not found]       ` <F4FD2953-6A0D-45F6-8D89-A6B7F357AC30@gaillourdet.net>
     [not found]         ` <87tyoncsei.fsf@gollum.intra.norang.ca>
2010-06-28 12:18           ` Jean-Marie Gaillourdet

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=7B46216F-526B-448A-9518-31F0034C496B@gaillourdet.net \
    --to=jmg@gaillourdet.net \
    --cc=emacs-orgmode@gnu.org \
    /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).