* TODO dependencies and file-level keywords
@ 2010-01-11 12:07 Chris Randle
2010-01-11 12:34 ` Carsten Dominik
0 siblings, 1 reply; 10+ messages in thread
From: Chris Randle @ 2010-01-11 12:07 UTC (permalink / raw)
To: emacs-orgmode
Hi Carsten,
I'm using Org-mode 6.33f under GNU Emacs 22.1.1 and Windows XP Pro SP3.
In one of my Org files, I have the line:
#+TYP_TODO: TODO NEXT WAIT PROJ | DONE NODO
But I find that, in the snippet below for example, tasks b and c are not
dependency-blocked, i.e. I can switch them to DONE or NODO when task a
remains in one of the non-DONE states.
* Parent
:PROPERTIES:
:ORDERED: t
:END:
** TODO a
** TODO b, needs to wait for (a)
** TODO c, needs to wait for (a) and (b)
If I switch from file-level TODO keywords to setting them globally in my
.emacs file, thus:
(setq org-todo-keywords
'((type "TODO" "NEXT" "WAIT" "PROJ" "|" "DONE" "NODO")))
then dependencies work as expected, i.e. tasks b and c cannot be
switched to DONE or NODO when task a is one of TODO, NEXT, WAIT or PROJ.
Is this as intended for some reason?
--
Chris Randle
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 12:07 TODO dependencies and file-level keywords Chris Randle
@ 2010-01-11 12:34 ` Carsten Dominik
2010-01-11 13:38 ` Giovanni Ridolfi
0 siblings, 1 reply; 10+ messages in thread
From: Carsten Dominik @ 2010-01-11 12:34 UTC (permalink / raw)
To: Chris Randle; +Cc: emacs-orgmode
Hi Chris, I am not able to reproduce this.
these are blocked just fine for me, at least the first time I try. If
I try again immediately, the entries do switch to other non-done
states, but not to DONE.
- Carsten
On Jan 11, 2010, at 1:07 PM, Chris Randle wrote:
> Hi Carsten,
>
> I'm using Org-mode 6.33f under GNU Emacs 22.1.1 and Windows XP Pro
> SP3.
>
> In one of my Org files, I have the line:
>
> #+TYP_TODO: TODO NEXT WAIT PROJ | DONE NODO
>
> But I find that, in the snippet below for example, tasks b and c are
> not dependency-blocked, i.e. I can switch them to DONE or NODO when
> task a remains in one of the non-DONE states.
>
> * Parent
> :PROPERTIES:
> :ORDERED: t
> :END:
> ** TODO a
> ** TODO b, needs to wait for (a)
> ** TODO c, needs to wait for (a) and (b)
>
> If I switch from file-level TODO keywords to setting them globally
> in my .emacs file, thus:
>
> (setq org-todo-keywords
> '((type "TODO" "NEXT" "WAIT" "PROJ" "|" "DONE" "NODO")))
>
> then dependencies work as expected, i.e. tasks b and c cannot be
> switched to DONE or NODO when task a is one of TODO, NEXT, WAIT or
> PROJ.
>
> Is this as intended for some reason?
>
> --
> Chris Randle
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 12:34 ` Carsten Dominik
@ 2010-01-11 13:38 ` Giovanni Ridolfi
2010-01-11 14:08 ` Giovanni Ridolfi
0 siblings, 1 reply; 10+ messages in thread
From: Giovanni Ridolfi @ 2010-01-11 13:38 UTC (permalink / raw)
To: Carsten Dominik, emacs-orgmode, Chris Randle
Carsten Dominik <carsten.dominik@gmail.com> writes:
> Hi Chris, I am not able to reproduce this.
I can reproduce it [beware, with 6.33trans 2010-01-08 version!]
Carsten, I will update to 6.34trans in few minutes and post
the results.
Org-mode version 6.33trans (6.33trans)
GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON
Windows XP Pro SP3
steps to reproduce:
Open a new org file
Yank Chris's configuration
>> #+TYP_TODO: TODO NEXT WAIT PROJ | DONE NODO
>>
>>
>> * Parent
>> :PROPERTIES:
>> :ORDERED: t
>> :END:
>> ** TODO a
>> ** TODO b, needs to wait for (a)
>> ** TODO c, needs to wait for (a) and (b)
C-c C-c on the #+TYP line to reload org-mode
leave "TODO" line b and c,
change line "a" with S-->
the TODO state is not blocked.
Does bloking work out of the box or should I configure
some variable?
cheers,
Giovanni
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 13:38 ` Giovanni Ridolfi
@ 2010-01-11 14:08 ` Giovanni Ridolfi
2010-01-11 14:52 ` David Maus
0 siblings, 1 reply; 10+ messages in thread
From: Giovanni Ridolfi @ 2010-01-11 14:08 UTC (permalink / raw)
To: Carsten Dominik, emacs-orgmode, Chris Randle
Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> Hi Chris, I am not able to reproduce this.
>
I can reproduce it with the latest version:
Org-mode version 6.34 (trans 2010-01-12 15:00 CET)
> GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON
> Windows XP Pro SP3
Does bloking work out of the box or should I configure
some variable(s)?
Cheers,
Giovanni
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 14:08 ` Giovanni Ridolfi
@ 2010-01-11 14:52 ` David Maus
2010-01-11 16:01 ` Giovanni Ridolfi
0 siblings, 1 reply; 10+ messages in thread
From: David Maus @ 2010-01-11 14:52 UTC (permalink / raw)
To: Giovanni Ridolfi; +Cc: emacs-orgmode, Carsten Dominik
[-- Attachment #1.1: Type: text/plain, Size: 781 bytes --]
At Mon, 11 Jan 2010 15:08:08 +0100,
Giovanni Ridolfi wrote:
>
> Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
>
> > Carsten Dominik <carsten.dominik@gmail.com> writes:
> >
> >> Hi Chris, I am not able to reproduce this.
> >
> I can reproduce it with the latest version:
>
> Org-mode version 6.34 (trans 2010-01-12 15:00 CET)
> > GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON
> > Windows XP Pro SP3
>
> Does bloking work out of the box or should I configure
> some variable(s)?
According to the manual
http://orgmode.org/manual/TODO-dependencies.html#TODO-dependencies
You have to set the variable org-enforce-todo-dependencies to t.
Regards
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 14:52 ` David Maus
@ 2010-01-11 16:01 ` Giovanni Ridolfi
2010-01-11 17:54 ` Carsten Dominik
0 siblings, 1 reply; 10+ messages in thread
From: Giovanni Ridolfi @ 2010-01-11 16:01 UTC (permalink / raw)
To: David Maus; +Cc: emacs-orgmode, Carsten Dominik
David Maus <maus.david@gmail.com> writes:
> At Mon, 11 Jan 2010 15:08:08 +0100,
> Giovanni Ridolfi wrote:
>> Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
>> > Carsten Dominik <carsten.dominik@gmail.com> writes:
>> >> Hi Chris, I am not able to reproduce this.
>> I can reproduce it with the latest version:
>> Org-mode version 6.34 (trans 2010-01-12 15:00 CET)
>> > GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON
>> > Windows XP Pro SP3
> You have to set the variable org-enforce-todo-dependencies to t.
ok David, thanks,
+ Setting the variable with :
(setq org-enforce-todo-dependencies t) C-x C-e
does not have effect: I can change line a
+ setting the variable in my .emacs and reloading emacs
(closed and re-run)
does not have effect: I can still change line a
cheers,
Giovanni
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 16:01 ` Giovanni Ridolfi
@ 2010-01-11 17:54 ` Carsten Dominik
2010-01-12 0:33 ` Chris Randle
2010-01-12 9:46 ` Giovanni Ridolfi
0 siblings, 2 replies; 10+ messages in thread
From: Carsten Dominik @ 2010-01-11 17:54 UTC (permalink / raw)
To: Giovanni Ridolfi; +Cc: emacs-orgmode
On Jan 11, 2010, at 5:01 PM, Giovanni Ridolfi wrote:
> David Maus <maus.david@gmail.com> writes:
>
>> At Mon, 11 Jan 2010 15:08:08 +0100,
>> Giovanni Ridolfi wrote:
>>> Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
>>>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>>>> Hi Chris, I am not able to reproduce this.
>>> I can reproduce it with the latest version:
>>> Org-mode version 6.34 (trans 2010-01-12 15:00 CET)
>>>> GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-
>>>> MJASON
>>>> Windows XP Pro SP3
>> You have to set the variable org-enforce-todo-dependencies to t.
>
> ok David, thanks,
>
> + Setting the variable with :
> (setq org-enforce-todo-dependencies t) C-x C-e
> does not have effect:
That is expected, see the docstring of that variable.
> I can change line a
> + setting the variable in my .emacs and reloading emacs
> (closed and re-run)
> does not have effect: I can still change line a
Same here, you need to set this variable *before* org.el gets loaded -
I am
suspecting that you are setting it after?
This is kind of tricky. Variable settings should therefore *before*
any require statements, and also the
(load-file "~/.emacs.d/custom.el")
or similar statement must be *before* all the `require' statements.
I am curious if, after you fix this, blocking will still not work.
Please let us know.
- Carsten
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 17:54 ` Carsten Dominik
@ 2010-01-12 0:33 ` Chris Randle
2010-01-12 5:30 ` Carsten Dominik
2010-01-12 9:46 ` Giovanni Ridolfi
1 sibling, 1 reply; 10+ messages in thread
From: Chris Randle @ 2010-01-12 0:33 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Hi Carsten et al.
Carsten Dominik wrote:
> Same here, you need to set this variable *before* org.el gets loaded - I am
> suspecting that you are setting it after?
>
> This is kind of tricky. Variable settings should therefore *before* any
> require statements, and also the
>
> (load-file "~/.emacs.d/custom.el")
>
> or similar statement must be *before* all the `require' statements.
>
> I am curious if, after you fix this, blocking will still not work.
> Please let us know.
Thank you Carsten, and others who chipped in with help. That was my
mistake. The org-enforce-todo-dependencies was set in my .emacs file
within a custom-set-variables block which came after some Org require
statements. Moving it before the require statements has fixed my problem.
I had read the help for the variable, but thought that it simply meant
that any changes to the variable wouldn't take effect until after
restarting the org-mode session. It hadn't occurred to me about the
order of statements in my .emacs file.
Thanks again.
--
Chris Randle
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-12 0:33 ` Chris Randle
@ 2010-01-12 5:30 ` Carsten Dominik
0 siblings, 0 replies; 10+ messages in thread
From: Carsten Dominik @ 2010-01-12 5:30 UTC (permalink / raw)
To: Chris Randle; +Cc: emacs-orgmode
On Jan 12, 2010, at 1:33 AM, Chris Randle wrote:
> Hi Carsten et al.
>
> Carsten Dominik wrote:
>> Same here, you need to set this variable *before* org.el gets
>> loaded - I am
>> suspecting that you are setting it after?
>> This is kind of tricky. Variable settings should therefore
>> *before* any require statements, and also the
>> (load-file "~/.emacs.d/custom.el")
>> or similar statement must be *before* all the `require' statements.
>> I am curious if, after you fix this, blocking will still not work.
>> Please let us know.
>
>
> Thank you Carsten, and others who chipped in with help. That was my
> mistake. The org-enforce-todo-dependencies was set in my .emacs file
> within a custom-set-variables block which came after some Org
> require statements. Moving it before the require statements has
> fixed my problem.
>
> I had read the help for the variable, but thought that it simply
> meant that any changes to the variable wouldn't take effect until
> after restarting the org-mode session. It hadn't occurred to me
> about the order of statements in my .emacs file.
Thats right, this is not explained clearly enough.
I should try to get rid of thee dependencies.
- Carsten
>
> Thanks again.
>
> --
> Chris Randle
- Carsten
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TODO dependencies and file-level keywords
2010-01-11 17:54 ` Carsten Dominik
2010-01-12 0:33 ` Chris Randle
@ 2010-01-12 9:46 ` Giovanni Ridolfi
1 sibling, 0 replies; 10+ messages in thread
From: Giovanni Ridolfi @ 2010-01-12 9:46 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> On Jan 11, 2010, at 5:01 PM, Giovanni Ridolfi wrote:
>
>> + setting the variable in my .emacs and reloading emacs
>> (closed and re-run)
>> does not have effect: I can still change line a
!! ^^^^^^^^^^^^^
>
> Same here, you need to set this variable *before* org.el gets loaded -
> I am suspecting that you are setting it after?
Is the second line of my .emacs *before* enough?
(I wrote in the 2nd line so I can find and remove it easily ;-)
Please, note that the first line is a comment.
> I am curious if, after you fix this, blocking will still not work.
> Please let us know.
=:-\
However as you can see before I wrote: "I can still change line a" !! (sic.)
I confused the blocking order:
I have been thinking that the first line'd have blocked by the following lines,
whereas it is the inverse:
the following line is blocked by the upper line!
Now I managed to make it work correctly. Sorry for the noise.
cheers,
Giovanni
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-01-12 9:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 12:07 TODO dependencies and file-level keywords Chris Randle
2010-01-11 12:34 ` Carsten Dominik
2010-01-11 13:38 ` Giovanni Ridolfi
2010-01-11 14:08 ` Giovanni Ridolfi
2010-01-11 14:52 ` David Maus
2010-01-11 16:01 ` Giovanni Ridolfi
2010-01-11 17:54 ` Carsten Dominik
2010-01-12 0:33 ` Chris Randle
2010-01-12 5:30 ` Carsten Dominik
2010-01-12 9:46 ` Giovanni Ridolfi
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).