From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Can't make TODO dependencies work Date: Mon, 2 Feb 2009 22:08:55 +0100 Message-ID: <3285DE88-1C40-4D27-A7C3-2054F4281F99@uva.nl> 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 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LU62P-00051C-SC for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 16:09:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LU62O-0004zq-5u for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 16:09:01 -0500 Received: from [199.232.76.173] (port=50822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU62N-0004zj-TS for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 16:08:59 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:53339) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LU62N-0007TH-Dp for emacs-orgmode@gnu.org; Mon, 02 Feb 2009 16:08:59 -0500 Received: by ewy13 with SMTP id 13so2254253ewy.18 for ; Mon, 02 Feb 2009 13:08:58 -0800 (PST) In-Reply-To: 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: Wes Hardaker Cc: emacs-orgmode@gnu.org On Feb 2, 2009, at 5:05 PM, Wes Hardaker wrote: >>>>>> On Sun, 1 Feb 2009 20:38:21 +0100, Carsten Dominik >>>>> > said: > > CD> I *could* do a different implementation, where the functions > CD> are always in the blocker hook, but are only active when the > CD> variables are set. However, the problem is then that it is > CD> difficult to see from the outside if the hook is doing something, > CD> and I want to use that knowledge to avoid overhead in the > CD> agenda for people who do not use todo dependencies. > > FYI, I'd actually suggest this approach. I think the number of people > that will get confused by variable-and-loading-ordering will be far > greater than the number of people trying to figure out why the > function > isn't doing anything (especially if in the function documentation it > says a variable must be set for it to perform any actions). > > I too immediately tried the new TODO dependencies after the last > release > announcement and couldn't get it to work... Old habit of performing > '(require ...)' ahead of the variable settings. I don't think this is easily possible in all cases, but I have made this chance now for the dependency variables. Causes some overhead when entering org-mode, but only trivial. But there are more such variables, org-replace-disputed-keys org-tab-follows-link org-return-follows-link org-mouse-1-follows-link These all have to do with keymaps I am setting up al load time. - Carsten > > -- > "In the bathtub of history the truth is harder to hold than the soap, > and much more difficult to find." -- Terry Pratchett