emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-enforce-todo-dependencies setting
@ 2012-03-21  1:26 Bernt Hansen
  2012-03-21  2:00 ` Nick Dokos
  0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2012-03-21  1:26 UTC (permalink / raw)
  To: carsten.dominik; +Cc: emacs-orgmode, jeff stern

Hi Carsten,

Are the last three lines of the description for
org-enforce-todo-dependencies correct? --------------------------------------------------+
                                                                                         |
,----[ C-h v org-enforce-todo-dependencies RET ]                                         |
| org-enforce-todo-dependencies is a variable defined in `org.el'.                       |
| Its value is t                                                                         |
|                                                                                        |
| Documentation:                                                                         |
| Non-nil means undone TODO entries will block switching the parent to DONE.             |
| Also, if a parent has an :ORDERED: property, switching an entry to DONE will           |
| be blocked if any prior sibling is not yet done.                                       |
| Finally, if the parent is blocked because of ordered siblings of its own,              |
| the child will also be blocked.                                                        |
| This variable needs to be set before org.el is loaded, and you need to   <--+          |
| restart Emacs after a change to make the change effective.  The only way <--+-- HERE <-+
| to change is while Emacs is running is through the customize interface.  <--+
`----

I set this variable with a setq in my .emacs long after loading org-mode
(uncompiled) and have never run into any issues with it.

,----[ my .emacs lines 16-18 ]
| (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
| (require 'org-install)
`----

,----[ my .emacs line 1568 ]
| (setq org-enforce-todo-dependencies t)
`----

From the description it doesn't sound like my setup is supposed to work.

According to git you wrote this.

,----[ git blame lisp/org.el ]
| 2949012f lisp/org.el (Carsten Dominik    2009-02-01 23:49:03 +0100  2273) This variable needs to be set before org.el is loaded, and you need to
| 2949012f lisp/org.el (Carsten Dominik    2009-02-01 23:49:03 +0100  2274) restart Emacs after a change to make the change effective.  The only way
| 2949012f lisp/org.el (Carsten Dominik    2009-02-01 23:49:03 +0100  2275) to change is while Emacs is running is through the customize interface."
`----

Thanks,
Bernt

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

* Re: org-enforce-todo-dependencies setting
  2012-03-21  1:26 org-enforce-todo-dependencies setting Bernt Hansen
@ 2012-03-21  2:00 ` Nick Dokos
  2012-03-21  2:05   ` Nick Dokos
  2012-03-21  4:43   ` Carsten Dominik
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Dokos @ 2012-03-21  2:00 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: nicholas.dokos, emacs-orgmode, jeff stern, carsten.dominik

Bernt Hansen <bernt@norang.ca> wrote:

> Hi Carsten,
> 
> Are the last three lines of the description for
> org-enforce-todo-dependencies correct? --------------------------------------------------+
>                                                                                          |
> ,----[ C-h v org-enforce-todo-dependencies RET ]                                         |
> | org-enforce-todo-dependencies is a variable defined in `org.el'.                       |
> | Its value is t                                                                         |
> |                                                                                        |
> | Documentation:                                                                         |
> | Non-nil means undone TODO entries will block switching the parent to DONE.             |
> | Also, if a parent has an :ORDERED: property, switching an entry to DONE will           |
> | be blocked if any prior sibling is not yet done.                                       |
> | Finally, if the parent is blocked because of ordered siblings of its own,              |
> | the child will also be blocked.                                                        |
> | This variable needs to be set before org.el is loaded, and you need to   <--+          |
> | restart Emacs after a change to make the change effective.  The only way <--+-- HERE <-+
> | to change is while Emacs is running is through the customize interface.  <--+
> `----
> 
> I set this variable with a setq in my .emacs long after loading org-mode
> (uncompiled) and have never run into any issues with it.
> 
> ,----[ my .emacs lines 16-18 ]
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
> | (require 'org-install)
> `----
> 
> ,----[ my .emacs line 1568 ]
> | (setq org-enforce-todo-dependencies t)
> `----
> 
> From the description it doesn't sound like my setup is supposed to work.
> 

Well, yes - but Carsten knew[fn:1] there'd be someone (we won't mention
names :-) ) who would do that and took care to do the
add-hook/remove-hook thingie while setting up the mode when you open an
org file: see line 5016ff in org.el. So it sounds a bit more ominous
than it actually is.

OTOH, if your .emacs opens an org file between lines 18 and 1568, all
bets are off.

Nick

Footnotes:

[fn:1] ... or maybe somebody did it and complained about it already: I
didn't search the ML.

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

* Re: org-enforce-todo-dependencies setting
  2012-03-21  2:00 ` Nick Dokos
@ 2012-03-21  2:05   ` Nick Dokos
  2012-03-21  2:06     ` Bernt Hansen
  2012-03-21  4:43   ` Carsten Dominik
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2012-03-21  2:05 UTC (permalink / raw)
  To: Bernt Hansen, emacs-orgmode; +Cc: nicholas.dokos

Nick Dokos <nicholas.dokos@hp.com> wrote:


> [fn:1] ... or maybe somebody did it and complained about it already: I
> didn't search the ML.
> 

``git blame'' fingers commit c11a0b2d which indicates that there were indeed
complaints.

Nick

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

* Re: org-enforce-todo-dependencies setting
  2012-03-21  2:05   ` Nick Dokos
@ 2012-03-21  2:06     ` Bernt Hansen
  0 siblings, 0 replies; 7+ messages in thread
From: Bernt Hansen @ 2012-03-21  2:06 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

> Nick Dokos <nicholas.dokos@hp.com> wrote:
>
>
>> [fn:1] ... or maybe somebody did it and complained about it already: I
>> didn't search the ML.
>> 
>
> ``git blame'' fingers commit c11a0b2d which indicates that there were indeed
> complaints.
>
> Nick

Yup - Thanks for the info!

Bernt

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

* Re: org-enforce-todo-dependencies setting
  2012-03-21  2:00 ` Nick Dokos
  2012-03-21  2:05   ` Nick Dokos
@ 2012-03-21  4:43   ` Carsten Dominik
  2012-03-21  7:27     ` Bastien
  1 sibling, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2012-03-21  4:43 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Bernt Hansen, emacs-orgmode, jeff stern


On 21.3.2012, at 03:00, Nick Dokos wrote:

> Bernt Hansen <bernt@norang.ca> wrote:
> 
>> Hi Carsten,
>> 
>> Are the last three lines of the description for
>> org-enforce-todo-dependencies correct? --------------------------------------------------+
>>                                                                                         |
>> ,----[ C-h v org-enforce-todo-dependencies RET ]                                         |
>> | org-enforce-todo-dependencies is a variable defined in `org.el'.                       |
>> | Its value is t                                                                         |
>> |                                                                                        |
>> | Documentation:                                                                         |
>> | Non-nil means undone TODO entries will block switching the parent to DONE.             |
>> | Also, if a parent has an :ORDERED: property, switching an entry to DONE will           |
>> | be blocked if any prior sibling is not yet done.                                       |
>> | Finally, if the parent is blocked because of ordered siblings of its own,              |
>> | the child will also be blocked.                                                        |
>> | This variable needs to be set before org.el is loaded, and you need to   <--+          |
>> | restart Emacs after a change to make the change effective.  The only way <--+-- HERE <-+
>> | to change is while Emacs is running is through the customize interface.  <--+
>> `----
>> 
>> I set this variable with a setq in my .emacs long after loading org-mode
>> (uncompiled) and have never run into any issues with it.
>> 
>> ,----[ my .emacs lines 16-18 ]
>> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
>> | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
>> | (require 'org-install)
>> `----
>> 
>> ,----[ my .emacs line 1568 ]
>> | (setq org-enforce-todo-dependencies t)
>> `----
>> 
>> From the description it doesn't sound like my setup is supposed to work.
>> 
> 
> Well, yes - but Carsten knew[fn:1] there'd be someone (we won't mention
> names :-) ) who would do that and took care to do the
> add-hook/remove-hook thingie while setting up the mode when you open an
> org file: see line 5016ff in org.el. So it sounds a bit more ominous
> than it actually is.
> 
> OTOH, if your .emacs opens an org file between lines 18 and 1568, all
> bets are off.
> 
> Nick
> 
> Footnotes:
> 
> [fn:1] ... or maybe somebody did it and complained about it already: I
> didn't search the ML.

I had forgotten all about this, but indeed, the hook makes sure
things are OK, so the sentence could be removed from the
docstring.

- Carsten

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

* Re: org-enforce-todo-dependencies setting
  2012-03-21  4:43   ` Carsten Dominik
@ 2012-03-21  7:27     ` Bastien
  2012-03-21  7:38       ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2012-03-21  7:27 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode, jeff stern

Carsten Dominik <carsten.dominik@gmail.com> writes:

> I had forgotten all about this, but indeed, the hook makes sure
> things are OK, so the sentence could be removed from the
> docstring.

Done, thanks.

-- 
 Bastien

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

* Re: org-enforce-todo-dependencies setting
  2012-03-21  7:27     ` Bastien
@ 2012-03-21  7:38       ` Carsten Dominik
  0 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2012-03-21  7:38 UTC (permalink / raw)
  To: Bastien; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode, jeff stern

Thanks!

- Carsten

On 21.3.2012, at 08:27, Bastien wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
> 
>> I had forgotten all about this, but indeed, the hook makes sure
>> things are OK, so the sentence could be removed from the
>> docstring.
> 
> Done, thanks.
> 
> -- 
> Bastien

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

end of thread, other threads:[~2012-03-21  7:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21  1:26 org-enforce-todo-dependencies setting Bernt Hansen
2012-03-21  2:00 ` Nick Dokos
2012-03-21  2:05   ` Nick Dokos
2012-03-21  2:06     ` Bernt Hansen
2012-03-21  4:43   ` Carsten Dominik
2012-03-21  7:27     ` Bastien
2012-03-21  7:38       ` Carsten Dominik

Code repositories for project(s) associated with this 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).