emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Error when changing todo-state [7.8.11]


From: Charles Philip Chan
Subject: Re: [O] Error when changing todo-state [7.8.11]
Date: Wed, 20 Jun 2012 13:08:20 -0400
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

address@hidden 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). 

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= state "CATEGORY")
|                           (save-excursion
|                                 (org-back-to-heading)
|                                 (org-set-property "CATEGORY"
|                                        (nth 4 (org-heading-components)))))))
`----

YMMV.

Charles

-- 
I've run DOOM more in the last few days than I have the last few
months.  I just love debugging ;-)
(Linus Torvalds)

Attachment: pgpI0tVKkvbzZ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]