From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Philip Chan Subject: Re: Error when changing todo-state [7.8.11] Date: Wed, 20 Jun 2012 13:08:20 -0400 Message-ID: References: <20449.31411.363564.346834@lappland.efeu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOKx-0003gG-4p for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 13:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShOKr-0002CT-Ky for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 13:04:58 -0400 Received: from blu0-omc1-s14.blu0.hotmail.com ([65.55.116.25]:4737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShOKr-0002Bb-Gi for emacs-orgmode@gnu.org; Wed, 20 Jun 2012 13:04:53 -0400 In-Reply-To: <20449.31411.363564.346834@lappland.efeu> (salome soedergran's message of "Wed, 20 Jun 2012 09:24:35 +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: Org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable salome.soedergran@gmx.ch writes: Hi Salome: > I recently upgraded to emacs24 and org 7.8.11. Since this upgrade, > when I set or change a todo-state, I get an error message > (void-variable state).=20 I had the same problem. It turned out that the problem is some customization that I have in "org-after-todo-state-change-hook". IIRC, the offending code (at least for me) is: ,---- | ;;Add category to todos | (add-hook 'org-after-todo-state-change-hook | (lambda () | (if (string=3D state "CATEGORY") | (save-excursion | (org-back-to-heading) | (org-set-property "CATEGORY" | (nth 4 (org-heading-components))))= ))) `---- YMMV. Charles =2D-=20 I've run DOOM more in the last few days than I have the last few months. I just love debugging ;-) (Linus Torvalds) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk/iA44ACgkQ3epPyyKbwPbpXwCfWDxYVlXteaqQvep4GxemeJi4 uTQAn0dibtoDnVBMQCOKMRJ4RYNy3jjt =ib63 -----END PGP SIGNATURE----- --=-=-=--