emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Stelian Iancu <stelian.iancu@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Bug: wrong-type-argument when changing TODO state [7.7]
Date: Mon, 29 Aug 2011 18:25:32 -0400	[thread overview]
Message-ID: <6025.1314656732@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Stelian Iancu <stelian.iancu@gmail.com> of "Mon\, 29 Aug 2011 23\:42\:42 +0200." <CAKvLAoj04+Z4CHaZUTfwf9nJaedrfudfnOqtcRrxOEbc47Md8g@mail.gmail.com>

Stelian Iancu <stelian.iancu@gmail.com> wrote:

> >
> > Then start up an emacs without any of your customizations, load the minimal.emacs
> > file and visit an org file and try what you tried before:
> >
> >   emacs -q -l /path/to/minimal.emacs /path/to/somefile.org
> >
> > and try changing a TODO as before.  Does that work?
> 
> 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.
> 
> > 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.
> >
> 
> 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.
> 

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 breaks.

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

  parent reply	other threads:[~2011-08-29 22:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-28 11:24 Bug: wrong-type-argument when changing TODO state [7.7] Stelian Iancu
2011-08-28 17:09 ` Nick Dokos
2011-08-29  7:41   ` Stelian Iancu
2011-08-29  7:59     ` Nick Dokos
2011-08-29 13:32       ` Stelian Iancu
2011-08-29 21:42       ` Stelian Iancu
2011-08-29 21:59         ` Stelian Iancu
2011-08-29 22:37           ` Nick Dokos
2011-08-29 23:02             ` Nick Dokos
2011-08-30 17:21               ` Nick Dokos
2011-08-31 11:03                 ` Stelian Iancu
2011-08-30  7:47             ` Stelian Iancu
2011-08-29 22:25         ` Nick Dokos [this message]
     [not found]   ` <stelian.iancu@gmail.com>
2011-11-24  8:03     ` Org from ELPA question Stelian Iancu
2011-11-24  8:17       ` Nick Dokos
2011-11-24  8:38         ` Stelian Iancu
2011-11-24 12:23           ` Jambunathan K
2011-11-24 12:55             ` Stelian Iancu
2011-11-24 20:44             ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6025.1314656732@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=stelian.iancu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).