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 11:34:11 +0100 Message-ID: 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: multipart/mixed; boundary="===============1849224760==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXCQ4-000203-JG for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXCQ2-0001zR-Ol for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:16 -0500 Received: from [199.232.76.173] (port=50014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXCQ2-0001zM-In for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:14 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:41123) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXCQ1-0007X7-R4 for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 05:34:14 -0500 Received: by mail-ew0-f20.google.com with SMTP id 13so202619ewy.18 for ; Wed, 11 Feb 2009 02:34:13 -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 --===============1849224760== Content-Type: multipart/alternative; boundary=Apple-Mail-2-490697187 --Apple-Mail-2-490697187 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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, 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? - Carsten --Apple-Mail-2-490697187 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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,

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?


- = Carsten= --Apple-Mail-2-490697187-- --===============1849224760== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1849224760==--