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

2012-06-22 Thread Salome =?iso-8859-1?Q?S=F6dergran

Am 20.6.2012 schrieb Nick Dokos:
 Eric S Fraga e.fr...@ucl.ac.uk wrote:
  state has been changed to org-state.
 
 That's probably the cause of the problem, but there is still the question
 of whether state is used in some customization that the OP has done
 or whether there are inconsistencies in the update (i.e. old bits lying
 around and being used in preference to the new ones).
 
 Nick
 
Changing state to org-state in org-checklist.el solved the problem.
Thank you, Eric and Nicholas, for your hints! 
Salome



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

2012-06-20 Thread salome . soedergran
Hi!

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). The 
desired todo-state is being set all the same. I guess there's some kind of 
conflict between my config and the new org-version -- but what is it and what 
can I do about it?
Please find the backtrace and parts of my init-file below.

Best, Salome


BACKTRACE
Debugger entered--Lisp error: (void-variable state)
  (member state org-done-keywords)
  (if (member state org-done-keywords) (progn (org-make-checklist-export) 
(org-reset-checkbox-state-maybe)))
  (when (member state org-done-keywords) (org-make-checklist-export) 
(org-reset-checkbox-state-maybe))
  org-checklist()
  run-hooks(org-after-todo-state-change-hook)
  byte-code(\306\307!\210\310!\203\311\225Sb\210\310\312
\313Q!\204\310\314!\210\302 \315 \302 
\316\216\317\320\321\307\211$*@@AABBC\311\232\203I\320C\322\202KDD\323\324!E\311\224F\325E!G\326GH\\211IA@J\327I8K\330I8LE\206{\331M\307NEO\235\211PAQR\203\264C\332\232\203\236S\333=\204\257C\204\264S\203\264S\333=\204\264\334
 \202
C\335\232\203\322S\203\305R\204\322\336\337\340\341O\\320\307$\202 
C\342=\203\357E\203\351Q\205  Q@\202O@\202
C\343=\203 PO\232?\205 E\203\344OGQG\345#O8\202 
OT\346T!@)\202  S\307=\2035C\347\232\2035\320\211C\206
C\203\271C\331\232\203E\320\202C\350=\203P\320\202  
C\351=\203bK\206U@\202C\352=\203yGV\235A@\206
V@\202C\353=\203\227\354V!VGV\235A@\206\223V@)\202   
CO\235@\206  C;\203\256\355\356C\\202   \357C!SO8\202
P\204\311G\206  O@\202EL\232\203\325\320\202  
Q\204\336\320\202J\360\203WX=\203\363Q@\202 QG\311V\205   
K\206 U@\202
Q@Y\361\362YM#\206Y\211Y\203%\363Y\363Q\202\363Z\364\365\366E\367Y\370\257[\320\211\\];\203~EU\235?^\212\302
 
\371\216\212\214~\210\372\373[\-\204~\374\375!\203m\355\376EY#\210\202~\377\376EY#\210\201g\201h\320\\210\201i\n!\210\201jZ\307\211#\210\201kF!\204\242\377\201l\201mZ!\\210G\204\306\325Y!G\326GH\\211IA@J\327I8K\330I8LC\201n\203\370\377\201o\344_G\201p\326Y_\_G#_G\201q\201r\326Y_\\363#$\210YU\235?^YU\235\205EU\235?]
\203\201s
!\210B\204$@\203\305D\307=\204\305C\201t\204\305\326YB\A@\206G\345\326EB\8\211\\\322=\203[D\322=\203[\201u\\Y\203zY`\235\203zE`\235\204z\201v\320\211\201w#\210]\203\252@\203\252\201v\201w\201x
 
\\210\\\204\252@\322=\203\252\201y\351YE\201z\322%\210Y\203\305\\\203\305\201y\201{YE\201z\\%\210\201|Y!\210a\203\335b\204\335\201}\320\307\\210c\203\347\201~
 \210\201\201\200!\210C\203YU\235\204\325Y!G\201\201\315 \201\202 
\201\203G$\210]\2036\201\204\201d!\203/\302 \201\205\216\201\206 
d*\201\207Y!\210\201\210 
\203rn\204r\212\201\211\324!\210\310e!)\203r`\345\211\225\206Y\324\225\\W\203r\345\225\206e\324\225b\210\310\363!\203r\201\212
 \210f\205\202\212\201\213\201f[\).\207 [org-outline-regexp 
org-todo-regexp match-data startpos save-match-data-internal logging 
org-back-to-heading t looking-at 0  + \\( +\\|[]*$\\) \\(?: *\\|[  
  ]*$\\) point-at-bol ((byte-code \301\302\\207 [save-match-data-internal 
set-match-data evaporate] 3)) org-entry-get nil LOGGING note match-string 1 
org-get-todo-sequence-head assoc 3 4  (4) prefix org-fast-todo-selection (4) 
org-icompleting-read State:  mapcar #[(x) C\207 [x] 1] right left - 2 last 
(4) none done nextset previousset reverse error State `%s' not valid in this 
file prefix-numeric-value (type priority) run-hook-with-args-until-success 
...] 10)
  org-todo(nil)
  call-interactively(org-todo nil nil)


Emacs  : GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-06-16 on platinum, modified by Debian
Package: Org-mode version 7.8.11

INIT-FILE (part)
(setq
 org-clock-persist 'history
 org-agenda-window-setup 'current-window
 org-goto-max-level 10
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-show-following-heading t
 org-agenda-restore-windows-after-quit t
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks 

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

2012-06-20 Thread Charles Philip Chan
salome.soederg...@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)


pgpAJLmULpmwr.pgp
Description: PGP signature


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

2012-06-20 Thread Eric S Fraga
salome.soederg...@gmx.ch writes:

 Hi!

 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). The desired todo-state is being set all the
 same. I guess there's some kind of conflict between my config and the
 new org-version -- but what is it and what can I do about it?
 Please find the backtrace and parts of my init-file below.

state has been changed to org-state.
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.1.50.1 and Org release_7.8.11-69-ga2fd96




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

2012-06-20 Thread Nick Dokos
Eric S Fraga e.fr...@ucl.ac.uk wrote:

 salome.soederg...@gmx.ch writes:
 
  Hi!
 
  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). The desired todo-state is being set all the
  same. I guess there's some kind of conflict between my config and the
  new org-version -- but what is it and what can I do about it?
  Please find the backtrace and parts of my init-file below.
 
 state has been changed to org-state.

That's probably the cause of the problem, but there is still the question
of whether state is used in some customization that the OP has done
or whether there are inconsistencies in the update (i.e. old bits lying
around and being used in preference to the new ones).

If tne cure is not obvious given the hints that various people have
given, I would suggest M-x toggle-debug-on-error and posting the
backtrace.

Nick