emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul Mead <paul.d.mead@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Can't make TODO dependencies work
Date: Mon, 02 Feb 2009 07:13:30 +0000	[thread overview]
Message-ID: <u3aex48h1.fsf@gmail.com> (raw)
In-Reply-To: D8343B50-AB15-4062-95F5-5A3F973A67B5@uva.nl

Carsten Dominik <dominik@science.uva.nl> 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

  parent reply	other threads:[~2009-02-02  7:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090201121412.657196d2@johnrakestraw.com>
2009-02-01 17:21 ` Can't make TODO dependencies work Carsten Dominik
2009-02-01 17:45 ` John Rakestraw
     [not found]   ` <941FA03B-2A6D-40ED-8D4B-A5657BEA9798@uva.nl>
2009-02-01 18:23     ` John Rakestraw
2009-02-01 19:21       ` Carsten Dominik
2009-02-01 19:38         ` Carsten Dominik
2009-02-01 20:27           ` John Rakestraw
2009-02-02  7:13           ` Paul Mead [this message]
2009-02-02 16:05           ` Wes Hardaker
2009-02-02 21:08             ` Carsten Dominik
2009-02-02 22:35               ` Wes Hardaker

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=u3aex48h1.fsf@gmail.com \
    --to=paul.d.mead@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public 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).