From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Docs submitted (Was Re: Advice sought on managing decision alternatives.) Date: Fri, 13 Feb 2009 09:53:29 +0530 Message-ID: References: <20090101170227.C707734803@mail2.panix.com> <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> <2162.24.62.30.15.1234306137.squirrel@mail.panix.com> <1778.65.96.63.84.1234469596.squirrel@mail.panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXpaR-0006cp-UE for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 23:23:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXpaR-0006ag-1E for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 23:23:35 -0500 Received: from [199.232.76.173] (port=42838 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXpaQ-0006aO-RE for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 23:23:34 -0500 Received: from ti-out-0910.google.com ([209.85.142.191]:16229) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXpaQ-00009B-A2 for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 23:23:34 -0500 Received: by ti-out-0910.google.com with SMTP id j3so575420tid.10 for ; Thu, 12 Feb 2009 20:23:30 -0800 (PST) In-Reply-To: <1778.65.96.63.84.1234469596.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 Fri, Feb 13, 2009 at 1:43 AM, Tom Breton (Tehom) wrote: >> On Wed, Feb 11, 2009 at 4:18 AM, Tom Breton (Tehom) wrote: >>> [...] >>> I couldn't reproduce this. Is this on the same test file as before? >> >> Sorry for the delay in reply, Tom. I reproduce the situation below: >> >> First the test file. >> >> --8<---------------cut here---------------start------------->8--- >> #+CHOOSE_TODO: REJECTED(r) NOT_CHOSEN(n,-) MAYBE(,0) >> LEANING_TOWARDS(l) CHOSEN(c,+) >> >> * Which editor to use? >> *** LEANING_TOWARDS Emacs >> *** LEANING_TOWARDS Vim >> *** LEANING_TOWARDS Textmate >> *** REJECTED Gedit >> *** REJECTED Textpad >> --8<---------------cut here---------------end--------------->8--- >> >> 0. I have latest org-choose loaded, org-mode restarted, and local >> setup refreshed. >> 1. S-right on the second item to switch it to CHOSEN state. It works. >> 2. Now S-right on the first item to switch it to CHOSEN state. Also >> works. >> >> Both entries stay at CHOSEN state whereas I expected the second entry >> to switch to a NON-CHOSEN state (possibly switching just one state >> backwards not all the way back to REJECTED, but then I do not yet >> understand it fully.) >> >> Is this the right behaviour? If yes, please help me understand this a >> little. Or could I be doing or have something wrong in my setup? > > That's not right the behavior, but again I can't seem to reproduce this. > Using your test file and following your instructions, I get the correct > behavior. Specifically, after S-right on second item: > [begin] > * Which editor to use? > *** NOT_CHOSEN Emacs > *** CHOSEN Vim > *** NOT_CHOSEN Textmate > *** REJECTED Gedit > *** REJECTED Textpad > [end] > Then after S-right on the first item, again correctly: > [begin] > * Which editor to use? > *** MAYBE Emacs > *** LEANING_TOWARDS Vim > *** NOT_CHOSEN Textmate > *** REJECTED Gedit > *** REJECTED Textpad > [end] > > Now there's clearly something different between my setup and yours that it > causing a bug, but it's very difficult to diagnose and fix at a distance. > > I have a theory that it's caused by an unloaded library whose absence makes > `org-map-entries' abort. > > What I'm going to try is to add a require for org-agenda. Will you try it > and tell me whether it fixes the bug? Because I just can't see the bug in > my setup. I didn't know if you meant to send me a patch or try something myself. I do not know any elisp but I interpreted your statement to mean something like the following patch and tried but without success. This is with "GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON" and latest Org-mode compiled from git with uncompiled org-choose.el. --8<---------------cut here---------------start------------->8--- diff --git a/contrib/lisp/org-choose.el b/contrib/lisp/org-choose.el index a5e8a19..1f54df6 100644 --- a/contrib/lisp/org-choose.el +++ b/contrib/lisp/org-choose.el @@ -65,6 +65,7 @@ (require 'org) (eval-when-compile (require 'cl)) +(require 'org-agenda) ;;;_. Body ;;;_ , The variables --8<---------------cut here---------------end--------------->8--- I am sure you meant something more intelligent. :-/ Thanks for looking into it. -- Manish