From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-enforce-todo-dependencies setting Date: Wed, 21 Mar 2012 05:43:10 +0100 Message-ID: References: <87mx7akamb.fsf@norang.ca> <31045.1332295207@alphaville> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SADOJ-0004kV-MV for emacs-orgmode@gnu.org; Wed, 21 Mar 2012 00:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SADOH-0000D5-Ps for emacs-orgmode@gnu.org; Wed, 21 Mar 2012 00:43:19 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:59616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SADOH-0000Ct-HG for emacs-orgmode@gnu.org; Wed, 21 Mar 2012 00:43:17 -0400 Received: by wgbdr1 with SMTP id dr1so320629wgb.30 for ; Tue, 20 Mar 2012 21:43:15 -0700 (PDT) In-Reply-To: <31045.1332295207@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Bernt Hansen , emacs-orgmode@gnu.org, jeff stern On 21.3.2012, at 03:00, Nick Dokos wrote: > Bernt Hansen wrote: >=20 >> Hi Carsten, >>=20 >> 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. <--+ >> `---- >>=20 >> 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. >>=20 >> ,----[ 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) >> `---- >>=20 >> ,----[ my .emacs line 1568 ] >> | (setq org-enforce-todo-dependencies t) >> `---- >>=20 >> =46rom the description it doesn't sound like my setup is supposed to = work. >>=20 >=20 > 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. >=20 > OTOH, if your .emacs opens an org file between lines 18 and 1568, all > bets are off. >=20 > Nick >=20 > Footnotes: >=20 > [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