emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [help] A org agenda command
@ 2007-04-18 23:15 Leo
  2007-04-19 15:06 ` Jason F. McBrayer
  2007-04-23 13:24 ` Carsten Dominik
  0 siblings, 2 replies; 15+ messages in thread
From: Leo @ 2007-04-18 23:15 UTC (permalink / raw)
  To: emacs-orgmode

Dear all,

How can I bring up a list of "stuck" projects? Here "stuck" means all of
the following:

  1. No DEADLINE/SCHEDULE
  2. No TODO Keywords
  3. No Tag

Thank you.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-18 23:15 [help] A org agenda command Leo
@ 2007-04-19 15:06 ` Jason F. McBrayer
  2007-04-23 13:24 ` Carsten Dominik
  1 sibling, 0 replies; 15+ messages in thread
From: Jason F. McBrayer @ 2007-04-19 15:06 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Leo <sdl.web@gmail.com> writes:

> How can I bring up a list of "stuck" projects? Here "stuck" means all of
> the following:
>
>   1. No DEADLINE/SCHEDULE
>   2. No TODO Keywords
>   3. No Tag
>

Is the documentation on org-stuck-projects not sufficient?  If you've
tried customizing that variable, and can't get it to do what you want,
maybe you can tell us what you've tried and where the problems are?


-- 
+-----------------------------------------------------------+
| Jason F. McBrayer                    jmcbray@carcosa.net  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada    |

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-18 23:15 [help] A org agenda command Leo
  2007-04-19 15:06 ` Jason F. McBrayer
@ 2007-04-23 13:24 ` Carsten Dominik
  2007-04-23 19:11   ` Carsten Dominik
  1 sibling, 1 reply; 15+ messages in thread
From: Carsten Dominik @ 2007-04-23 13:24 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Apr 19, 2007, at 1:15, Leo wrote:

> Dear all,
>
> How can I bring up a list of "stuck" projects? Here "stuck" means all 
> of
> the following:
>
>   1. No DEADLINE/SCHEDULE
>   2. No TODO Keywords
>   3. No Tag
>
> Thank you.


You need some way to tell what a project is, for example
everything with level 2 that is not DONE.

To indicate that any TODO keyword or any tag will label the
project non-stuck, you currently have to list all TODO keywords
and all TAGS in the variable `org-stuck-projects'.

So right now you'd have to do something like:

(setq org-stuck-projects
   '("+LEVEL=2/-DONE" ("TODO" "NEXT" ...) ("TAG1" "TAG2" ...)))

I can see that this is unsatisfactory, so in the next version you will 
be able to specify "*" as a tag or a TODO keyword to indicate that you 
mean all of them.  For now this will only work in the context of stuck 
projects.

(setq org-stuck-projects
   '("+LEVEL=2/-DONE" ("*") ("*")))

- Carsten

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-23 13:24 ` Carsten Dominik
@ 2007-04-23 19:11   ` Carsten Dominik
  2007-04-23 19:21     ` Leo
  2007-04-24  8:58     ` Leo
  0 siblings, 2 replies; 15+ messages in thread
From: Carsten Dominik @ 2007-04-23 19:11 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Leo


On Apr 23, 2007, at 15:24, Carsten Dominik wrote:
>
> (setq org-stuck-projects
>   '("+LEVEL=2/-DONE" ("*") ("*")))

In fact, the following will also be possible, allowing just what
you asked for:

(setq org-stuck-projects
     '("LEVEL=2/-DONE" ("*") ("*")
       "\\<\\(SCHEDULED\\|DEADLINE\\): <"))

The last element is an arbitrary regular expression.
If it matches in the project tree, the project is considered
unstuck.

- Carsten



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-23 19:11   ` Carsten Dominik
@ 2007-04-23 19:21     ` Leo
  2007-04-24  8:58     ` Leo
  1 sibling, 0 replies; 15+ messages in thread
From: Leo @ 2007-04-23 19:21 UTC (permalink / raw)
  To: emacs-orgmode

----- Carsten Dominik (2007-04-23) wrote:-----

> In fact, the following will also be possible, allowing just what
> you asked for:
>
> (setq org-stuck-projects
>     '("LEVEL=2/-DONE" ("*") ("*")
>       "\\<\\(SCHEDULED\\|DEADLINE\\): <"))
>
> The last element is an arbitrary regular expression.
> If it matches in the project tree, the project is considered
> unstuck.
>
> - Carsten

Thank you Carsten. I am looking forward to this in next release.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-23 19:11   ` Carsten Dominik
  2007-04-23 19:21     ` Leo
@ 2007-04-24  8:58     ` Leo
  2007-04-24  9:22       ` Leo
  2007-04-24 10:18       ` Carsten Dominik
  1 sibling, 2 replies; 15+ messages in thread
From: Leo @ 2007-04-24  8:58 UTC (permalink / raw)
  To: emacs-orgmode

----- Carsten Dominik (2007-04-23) wrote:-----

> (setq org-stuck-projects
>     '("LEVEL=2/-DONE" ("*") ("*")
>       "\\<\\(SCHEDULED\\|DEADLINE\\): <"))

I am trying this with 4.72. What does "LEVEL=2/-DONE" mean?

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-24  8:58     ` Leo
@ 2007-04-24  9:22       ` Leo
  2007-04-24 10:18       ` Carsten Dominik
  1 sibling, 0 replies; 15+ messages in thread
From: Leo @ 2007-04-24  9:22 UTC (permalink / raw)
  To: emacs-orgmode

----- Leo (2007-04-24) wrote:-----

>> (setq org-stuck-projects
>>     '("LEVEL=2/-DONE" ("*") ("*")
>>       "\\<\\(SCHEDULED\\|DEADLINE\\): <"))
>
> I am trying this with 4.72. What does "LEVEL=2/-DONE" mean?

I wonder this because with the setting above, `C-c a #' still brings up
an empty list.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Re: [help] A org agenda command
  2007-04-24  8:58     ` Leo
  2007-04-24  9:22       ` Leo
@ 2007-04-24 10:18       ` Carsten Dominik
  2007-04-24 10:58         ` Leo
  2009-02-04  9:41         ` Leo
  1 sibling, 2 replies; 15+ messages in thread
From: Carsten Dominik @ 2007-04-24 10:18 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


LEVEL=2/-DONE means that the search for stuck projects should consider
any level 2 entry (i.e. starting with **) as a project, but should 
immediately exclude projects where the top headline is marked DONE.

Starting from this, the project subtrees are then checked for TODO 
keywords and TAGS.

- Carsten





On Apr 24, 2007, at 10:58, Leo wrote:

> ----- Carsten Dominik (2007-04-23) wrote:-----
>
>> (setq org-stuck-projects
>>     '("LEVEL=2/-DONE" ("*") ("*")
>>       "\\<\\(SCHEDULED\\|DEADLINE\\): <"))
>
> I am trying this with 4.72. What does "LEVEL=2/-DONE" mean?
>
> -- 
> Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-24 10:18       ` Carsten Dominik
@ 2007-04-24 10:58         ` Leo
  2007-04-24 11:11           ` Leo
  2009-02-04  9:41         ` Leo
  1 sibling, 1 reply; 15+ messages in thread
From: Leo @ 2007-04-24 10:58 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Dear Carsten,

----- Carsten Dominik (2007-04-24) wrote:-----

> LEVEL=2/-DONE means that the search for stuck projects should consider
> any level 2 entry (i.e. starting with **) as a project, but should
> immediately exclude projects where the top headline is marked DONE.
>
> Starting from this, the project subtrees are then checked for TODO
> keywords and TAGS.
>
> - Carsten

Thank you, Carsten.

However, it is weird that this doesn't respect the `org-odd-levels-only'
setting.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-24 10:58         ` Leo
@ 2007-04-24 11:11           ` Leo
  2007-04-24 11:38             ` Carsten Dominik
  0 siblings, 1 reply; 15+ messages in thread
From: Leo @ 2007-04-24 11:11 UTC (permalink / raw)
  To: emacs-orgmode


> However, it is weird that this doesn't respect the `org-odd-levels-only'
> setting.

I set the following to achieve multiple DONE states (is there a better
way?):

   (setq org-todo-keywords '((sequence "ACTION" "DONE")
                            (sequence "|" "WAITING")))

But all projects marked with "WAITING" are still considered stuck.

I now set something like this:

  (setq org-stuck-projects
        '("LEVEL=3/-DONE-WAITING" ("*") ("*")
          "\\<\\(SCHEDULED\\|DEADLINE\\): <"))

But I think even without `-WAITING', projects shouldn't be considered
stuck due to the first `("*")'. Bug?

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Re: [help] A org agenda command
  2007-04-24 11:11           ` Leo
@ 2007-04-24 11:38             ` Carsten Dominik
  0 siblings, 0 replies; 15+ messages in thread
From: Carsten Dominik @ 2007-04-24 11:38 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Apr 24, 2007, at 13:11, Leo wrote:

>
>> However, it is weird that this doesn't respect the 
>> `org-odd-levels-only'
>> setting.
>
> I set the following to achieve multiple DONE states (is there a better
> way?):
>
>    (setq org-todo-keywords '((sequence "ACTION" "DONE")
>                             (sequence "|" "WAITING")))

If you write it like this, WAITING is a DONE state.  Projects are not 
stuck if they have something TODO.  So a project which only has WAITING 
entries with the above definition is indeed stuck, because it will not 
produce entries in TODO lists.

maybe you should use:

    (setq org-todo-keywords '((sequence "ACTION" "DONE")
                             (sequence "WAITING" "|")))

?

- Carsten


>
> But all projects marked with "WAITING" are still considered stuck.
>
> I now set something like this:
>
>   (setq org-stuck-projects
>         '("LEVEL=3/-DONE-WAITING" ("*") ("*")
>           "\\<\\(SCHEDULED\\|DEADLINE\\): <"))
>
> But I think even without `-WAITING', projects shouldn't be considered
> stuck due to the first `("*")'. Bug?
>
> -- 
> Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2007-04-24 10:18       ` Carsten Dominik
  2007-04-24 10:58         ` Leo
@ 2009-02-04  9:41         ` Leo
  2009-02-04 14:22           ` Carsten Dominik
  1 sibling, 1 reply; 15+ messages in thread
From: Leo @ 2009-02-04  9:41 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

On 2007-04-24 11:18 +0100, Carsten Dominik wrote:
> LEVEL=2/-DONE means that the search for stuck projects should consider
> any level 2 entry (i.e. starting with **) as a project, but should
> immediately exclude projects where the top headline is marked DONE.

I remember we had a discussion to make LEVEL=2 respect
`org-odd-levels-only' i.e. LEVEL=2 would mean headings starting with
three "*" when org-odd-levels-only is t.

However, after using this for such a long time I realise this is counter
intuitive. Thus if possible please revert the change.

All the best,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2009-02-04  9:41         ` Leo
@ 2009-02-04 14:22           ` Carsten Dominik
  2009-02-04 15:34             ` Leo
  0 siblings, 1 reply; 15+ messages in thread
From: Carsten Dominik @ 2009-02-04 14:22 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Hi Leo,

this is possible, but will break what people use, I am afraid.

- Carsten

On Feb 4, 2009, at 10:41 AM, Leo wrote:

> On 2007-04-24 11:18 +0100, Carsten Dominik wrote:
>> LEVEL=2/-DONE means that the search for stuck projects should  
>> consider
>> any level 2 entry (i.e. starting with **) as a project, but should
>> immediately exclude projects where the top headline is marked DONE.
>
> I remember we had a discussion to make LEVEL=2 respect
> `org-odd-levels-only' i.e. LEVEL=2 would mean headings starting with
> three "*" when org-odd-levels-only is t.
>
> However, after using this for such a long time I realise this is  
> counter
> intuitive. Thus if possible please revert the change.
>
> All the best,
> -- 
> .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2009-02-04 14:22           ` Carsten Dominik
@ 2009-02-04 15:34             ` Leo
  2009-02-06  7:51               ` Carsten Dominik
  0 siblings, 1 reply; 15+ messages in thread
From: Leo @ 2009-02-04 15:34 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

On 2009-02-04 14:22 +0000, Carsten Dominik wrote:
>> On Feb 4, 2009, at 10:41 AM, Leo wrote:
>>
>>> On 2007-04-24 11:18 +0100, Carsten Dominik wrote:
>>>> LEVEL=2/-DONE means that the search for stuck projects should
>>>> consider
>>>> any level 2 entry (i.e. starting with **) as a project, but should
>>>> immediately exclude projects where the top headline is marked DONE.
>>>
>>> I remember we had a discussion to make LEVEL=2 respect
>>> `org-odd-levels-only' i.e. LEVEL=2 would mean headings starting with
>>> three "*" when org-odd-levels-only is t.
>>>
>>> However, after using this for such a long time I realise this is
>>> counter
>>> intuitive. Thus if possible please revert the change.
[...]
> Hi Leo,

Hi Carsten, long time no 'see'.

> this is possible, but will break what people use, I am afraid.

I re-read our discussion. Realising that org-odd-levels-only can be set
on a per file basis, now I think it is better to keep current
change. The remaining issue is to find a place to document the meaning
of LEVEL in org-stuck-projects.

Actually I have removed customisation of org-stuck-projects and use its
default value. With the flowing of so many new features into org, I find
less need to inspect stuck projects.

> - Carsten

Best wishes,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [help] A org agenda command
  2009-02-04 15:34             ` Leo
@ 2009-02-06  7:51               ` Carsten Dominik
  0 siblings, 0 replies; 15+ messages in thread
From: Carsten Dominik @ 2009-02-06  7:51 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Hi Leo,

I am afraid there is no "good" solution to this problem, you can
always look at this two ways.

Would you like to suggest a place where this behavior
could be documented?

- Carsten

On Feb 4, 2009, at 4:34 PM, Leo wrote:

> On 2009-02-04 14:22 +0000, Carsten Dominik wrote:
>>> On Feb 4, 2009, at 10:41 AM, Leo wrote:
>>>
>>>> On 2007-04-24 11:18 +0100, Carsten Dominik wrote:
>>>>> LEVEL=2/-DONE means that the search for stuck projects should
>>>>> consider
>>>>> any level 2 entry (i.e. starting with **) as a project, but should
>>>>> immediately exclude projects where the top headline is marked  
>>>>> DONE.
>>>>
>>>> I remember we had a discussion to make LEVEL=2 respect
>>>> `org-odd-levels-only' i.e. LEVEL=2 would mean headings starting  
>>>> with
>>>> three "*" when org-odd-levels-only is t.
>>>>
>>>> However, after using this for such a long time I realise this is
>>>> counter
>>>> intuitive. Thus if possible please revert the change.
> [...]
>> Hi Leo,
>
> Hi Carsten, long time no 'see'.
>
>> this is possible, but will break what people use, I am afraid.
>
> I re-read our discussion. Realising that org-odd-levels-only can be  
> set
> on a per file basis, now I think it is better to keep current
> change. The remaining issue is to find a place to document the meaning
> of LEVEL in org-stuck-projects.
>
> Actually I have removed customisation of org-stuck-projects and use  
> its
> default value. With the flowing of so many new features into org, I  
> find
> less need to inspect stuck projects.
>
>> - Carsten
>
> Best wishes,
> -- 
> .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-02-06  8:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-18 23:15 [help] A org agenda command Leo
2007-04-19 15:06 ` Jason F. McBrayer
2007-04-23 13:24 ` Carsten Dominik
2007-04-23 19:11   ` Carsten Dominik
2007-04-23 19:21     ` Leo
2007-04-24  8:58     ` Leo
2007-04-24  9:22       ` Leo
2007-04-24 10:18       ` Carsten Dominik
2007-04-24 10:58         ` Leo
2007-04-24 11:11           ` Leo
2007-04-24 11:38             ` Carsten Dominik
2009-02-04  9:41         ` Leo
2009-02-04 14:22           ` Carsten Dominik
2009-02-04 15:34             ` Leo
2009-02-06  7:51               ` Carsten Dominik

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).