From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mead Subject: Re: Can't make TODO dependencies work Date: Mon, 02 Feb 2009 07:13:30 +0000 Message-ID: References: <20090201121412.657196d2@johnrakestraw.com> <20090201124540.2c5a1c45@johnrakestraw.com> <941FA03B-2A6D-40ED-8D4B-A5657BEA9798@uva.nl> <20090201132310.57b6e384@johnrakestraw.com> <82B40ECB-ADB0-441D-885B-2CD64DA53EFE@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTt0K-0005Xb-V0 for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 02:14:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTt0F-0005XP-Qh for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 02:13:59 -0500 Received: from [199.232.76.173] (port=33177 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTt0F-0005XM-LA for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 02:13:55 -0500 Received: from main.gmane.org ([80.91.229.2]:37600 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTt0E-0001II-LZ for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 02:13:55 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LTt03-0000PS-26 for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 07:13:43 +0000 Received: from cpc2-rdng14-0-0-cust207.winn.cable.ntl.com ([82.0.204.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Feb 2009 07:13:43 +0000 Received: from paul.d.mead by cpc2-rdng14-0-0-cust207.winn.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Feb 2009 07:13:43 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik writes: > In fact, we need a FAQ about this issue: > > Several variables in Org must already be set a load time. > This is one of the reasons why you should not use (require 'org) > in your setup, but better only (require 'org-install). > > However, org.el will also get loaded when you require some > other org-... file, for example an add-on from the contrib > directory. > > The right way is therefore *always* this (a general Emacs truth). > > First, set all your variables. Then load the package. > > In this particular example, the problem is the following: > Setting the variables for the todo dependencies triggers > adding functions to org-blocker-hook, at load time for org.el. > > I *could* do a different implementation, where the functions > are always in the blocker hook, but are only active when the > variables are set. However, the problem is then that it is > difficult to see from the outside if the hook is doing something, > and I want to use that knowledge to avoid overhead in the > agenda for people who do not use todo dependencies. > > - Carsten Excellent, I was wondering why I couldn't get this function to work. Paul