From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: wrong-type-argument when changing TODO state [7.7] Date: Mon, 29 Aug 2011 18:25:32 -0400 Message-ID: <6025.1314656732@alphaville.americas.hpqcorp.net> References: <4E5A2556.50106@gmail.com> <27177.1314551389@alphaville.dokosmarshall.org> <23342.1314604746@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyAGt-0000VY-Hq for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 18:25:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyAGs-00078M-HZ for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 18:25:35 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:44659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyAGs-00078E-CS for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 18:25:34 -0400 In-Reply-To: Message from Stelian Iancu of "Mon\, 29 Aug 2011 23\:42\:42 +0200." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stelian Iancu Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Stelian Iancu wrote: > > > > Then start up an emacs without any of your customizations, load the min= imal.emacs > > file and visit an org file and try what you tried before: > > > > =C2=A0 emacs -q -l /path/to/minimal.emacs /path/to/somefile.org > > > > and try changing a TODO as before. =C2=A0Does that work? >=20 > Tried this one and indeed, it works now. Looking at the > org-todo-line-regexp variable I can see it's no longer reported nil. >=20 > > If not, try -Q > > instead of -q: does *that* work? > > > > Assuming one of these works, then you have localized the problem to > > some customization (yours or the systems) and then there are various > > ways to proceed. > > >=20 > So it is a customization issue. Now the question is what :-). I should > mention that I am using both dev versions for Emacs and org-mode > (Emacs from bzr from a few days ago and org-mode from git from a few > days ago) on Mac OS X 10.7. Emacs is installed using homebrew. >=20 Probably. The next step is to modify your .emacs (or whatever you use) to do all the other stuff, except for the orgmode customizations and try again. If it works, you keep introducing more and more stuff until it break= s. My .emacs does things like this: ... (require 'my-org-config) ... and all the org config stuff is in a separate file, my-org-config.el which ends with (provide 'my-org-config) That way I can whack large swaths of code in one swell foop (sic) by just commenting out the (require ...) form in .emacs and replacing it with a (load-file "minimal.org.emacs") but even if you don't have it organized like this, you can still follow the steps. Always keep the minimal stuff that is necessary to get org-mode loaded. Then bisect your way through your org config: throw away the bottom half temporarily and try with just the top half. If that works, add some (roughly half) of the stuff you threw away and try again. If it doesn't, try with the bottom half only. And keep doing it until you find the culprit. The most important thing is to be systematic, but also aware of what you are doing. You have to choose your bisection points with some care. But bisection is a very effective way to find such problems. There have been many discussions of such bisections on this list in the past. You might want to search the list for more suggestions. Nick