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: Wed, 11 Feb 2009 13:29:55 +0100 Message-ID: <3AFEF956-A0A1-4777-B02C-4ECC58844EDB@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> 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 1LXEEB-0006B1-5k for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 07:30:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXEE7-00069S-EM for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 07:30:06 -0500 Received: from [199.232.76.173] (port=46333 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXEE7-00069J-Am for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 07:30:03 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:36961) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXEE5-0003ho-So for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 07:30:02 -0500 Received: by ewy13 with SMTP id 13so275370ewy.18 for ; Wed, 11 Feb 2009 04:29:58 -0800 (PST) In-Reply-To: <1062.24.62.30.15.1234314505.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 2:08 AM, Tom Breton (Tehom) wrote: >> On Tue, Feb 10, 2009 at 2:42 PM, Carsten Dominik wrote: >>> >>> On Feb 10, 2009, at 9:46 AM, Manish wrote: >>> >>>> On Tue, Feb 10, 2009 at 8:44 AM, Tom Breton (Tehom) wrote: >>>> [...] >>>>> >>>>> OK, I've add comments, keywords, and some docstrings I forgot to >>>>> org-choose.el, and I wrote a standalone doc. Both are attached. >>>> >>>> This is very intriguing functionality. I tried to follow your and >>>> Casten's >>>> earlier exchanges but could understand only a little. So I tried to >>>> follow >>>> your tutorial but I am getting stuck at switching the >>>> `choosenness' of >>>> items. >>>> I get following error when I try to switch to any state from "no >>>> state". >>>> Once >>>> I assign a state by typing it out manually (as opposed to using >>>> state >>>> switching commands), I can then switch between states but the error >>>> repeats >>>> when I try to switch to "MAYBE" state. >>>> >>>> ,---- >>>> | save-excursion: Symbol's function definition is void: >>>> outline-up-heading-all >>>> `---- >>> >>> Hmm, not sure if I messed up there - so I fixed this bug. Tom, >>> please check if I did this right. >> >> This issue is gone for me. Thanks. >> >>>> So far, my understaning is that only one item can be in "YES" >>>> state. If >>>> I >>>> try >>>> to switch another item to "YES" then the existing "YES" will be >>>> demoted >>>> to "MAYBE". So for a two-state choosenness only one item can be in >>>> CHOOSE >>>> state while all others will switch to NOT_CHOOSEN state.. is that >>>> understanding correct? >> >> With three choices for choosenness, it works as I expected (only >> one item >> in >> CHOSEN state at a time) but for more choices like: >> >> #+CHOOSE_TODO: REJECTED(r) NOT_CHOSEN(n,-) MAYBE(,0) >> LEANING_TOWARDS(l) CHOSEN(c,+) >> >> it allows multiple items to be in CHOSEN state. How do we >> interpret that? > > Having fetched and set up 6.22b, I can now reproduce it. > > 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, maybe you can educate me: I have never understood what the "#" does in code like the one you have here. You are using it, so maybe you know? - Carsten