From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tom Breton (Tehom)" Subject: Re: Docs submitted (Was Re: Advice sought on managing decision alternatives.) Date: Tue, 10 Feb 2009 20:08:25 -0500 (EST) Message-ID: <1062.24.62.30.15.1234314505.squirrel@mail.panix.com> 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> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LX3aX-0006jo-Iq for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 20:08:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LX3aW-0006ja-6s for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 20:08:29 -0500 Received: from [199.232.76.173] (port=41386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LX3aV-0006jX-VH for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 20:08:28 -0500 Received: from mail2.panix.com ([166.84.1.73]:64941) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LX3aV-0007s0-Ie for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 20:08:27 -0500 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: Manish Cc: emacs-orgmode@gnu.org > 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' o= f >>> 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 demot= ed >>> 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 it= em > 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 th= at? 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) )) Tom Breton (Tehom)