From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Docs submitted (Was Re: Advice sought on managing decision alternatives.) Date: Thu, 12 Feb 2009 00:44:07 +0100 Message-ID: <2515A2B2-58A8-4339-82AB-B4B71DE488F6@uva.nl> References: <20090101170227.C707734803@mail2.panix.com> <1036.24.63.0.170.1233950825.squirrel@mail.panix.com> <60BDFE6D-6B8C-4A23-A737-67DC1F523C79@uva.nl> <1044.66.30.185.29.1234039592.squirrel@mail.panix.com> <6444D654-9B7B-415D-A6DB-F3BADCB1EE2A@uva.nl> <1451.24.63.21.131.1234124707.squirrel@mail.panix.com> <8BD25355-1218-4DB5-9C85-77EA011540D0@uva.nl> <1555.24.62.30.15.1234235653.squirrel@mail.panix.com> <1062.24.62.30.15.1234314505.squirrel@mail.panix.com> <1330.65.96.63.84.1234388462.squirrel@mail.panix.com> 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 1LXOkZ-0001UZ-Bw for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 18:44:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXOkX-0001Rv-HY for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 18:44:14 -0500 Received: from [199.232.76.173] (port=43348 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXOkX-0001RT-8I for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 18:44:13 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]:53475) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXOkW-0003bO-OF for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 18:44:13 -0500 Received: by nf-out-0910.google.com with SMTP id d3so52134nfc.26 for ; Wed, 11 Feb 2009 15:44:11 -0800 (PST) In-Reply-To: <1330.65.96.63.84.1234388462.squirrel@mail.panix.com> 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: "Tom Breton (Tehom)" Cc: emacs-orgmode@gnu.org 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- >>> choose.el, >>> 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 >>> patch, >>> but ISTM it's easier to just press backspace once. It's here: >>> >>> (eval-after-load 'org >>> '(progn >>> ;;^--HERE. >>> (add-to-list 'org-todo-setup-filter-hook >>> #'org-choose-setup-filter) >>> (add-to-list 'org-todo-get-default-hook >>> #'org-choose-get-default-mark) >>> (add-to-list 'org-trigger-hook >>> #'org-choose-keep-sensible) >>> (add-to-list 'org-todo-interpretation-widgets >>> '(:tag "Choose (to record decisions)" choose) >>> 'append) >>> )) >> >> 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): > > (let* > ((x 1)) > (eval-after-load 'simple (setq x 2)) > x) > > => 2 > > > > (let* > ((x 1)) > (eval-after-load 'simple '(setq x 2)) > x) > > => 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) > > >