[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Docs submitted (Was Re: Advice sought on managing decision

From: Carsten Dominik
Subject: Re: [Orgmode] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
Date: Thu, 12 Feb 2009 00:44:07 +0100

On Feb 11, 2009, at 10:41 PM, Tom Breton (Tehom) wrote:

On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote:

This bug is simple.  In "Setting it all up" at the end of org-
in 6.22b a quote got introduced before progn. That's all. With that
quote, it "evaluated" a quoted form and did nothing.  I'd send a
but ISTM it's easier to just press backspace once.  It's here:

(eval-after-load 'org
   (add-to-list 'org-todo-setup-filter-hook
   (add-to-list 'org-todo-get-default-hook
   (add-to-list 'org-trigger-hook
   (add-to-list 'org-todo-interpretation-widgets
                  '(:tag "Choose   (to record decisions)" choose)

Hi Tom,

I added the quote because without it, evaluating org-chose.el did error.
It was my understanding that such a form has to be quoted.  Am
I missing something here?

What error did it give?  I didn't get one here.

eval: Invalid function: (:tag "Sequence (cycling hits every state)" sequence)

I don't understand it either.

Definitely the form should not be quoted.  Quoted, it does nothing.
Demonstration (with libary `simple' which is fairly basic in emacs so
probably loaded for everyone):

  ((x 1))
  (eval-after-load 'simple (setq x 2))

=> 2

  ((x 1))
  (eval-after-load 'simple '(setq x 2))

=> 1

In fact, I am getting 2 in both cases!!!!!???????
Do you really get 1 for the second???

eval-after-load is a function, not a macro, so FORM will
be evaluated *before* being passed to the function.  But the
idea, IIUC is, that the form will be added to after-load-alist,
and evaluated whenever appropriate.

I have a number of eval-after-loads in org.el, each time the
form is quotes and does the right thing.

- Carsten

Tom Breton (Tehom)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]