all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
	jeff stern <jas.61803@gmail.com>,
	carsten.dominik@gmail.com
Subject: Re: org-enforce-todo-dependencies setting
Date: Tue, 20 Mar 2012 22:00:07 -0400	[thread overview]
Message-ID: <31045.1332295207@alphaville> (raw)
In-Reply-To: Message from Bernt Hansen <bernt@norang.ca> of "Tue, 20 Mar 2012 21:26:20 EDT." <87mx7akamb.fsf@norang.ca>

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.

  reply	other threads:[~2012-03-21  2:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21  1:26 org-enforce-todo-dependencies setting Bernt Hansen
2012-03-21  2:00 ` Nick Dokos [this message]
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

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

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

  git send-email \
    --in-reply-to=31045.1332295207@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=bernt@norang.ca \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jas.61803@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.