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