Michael Heerdegen writes:
> #+begin_src emacs-lisp
> (or (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)"))
> (looking-at "\\(?: *\\|[ \t]*$\\)"))
> #+end_src
If you replace that part of `org-todo' with
#+begin_src emacs-lisp
(or (looking-at (concat " +" org-todo-regexp "\\( +\
Ihor Radchenko writes:
> > #+begin_example
> > Debugger entered--Lisp error: (args-out-of-range # 0
> > 3092985)
Looks like invalid match data could be the cause. AFAIU match data is
set by this expression:
#+begin_src emacs-lisp
(or (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)
stardiviner writes:
> When I change a task from "TODO" to "DONE", or "DONE" to "TODO", or
> other todo keywords with [C-c C-t]. Org mode will raise bellowing error
> "*randomly*". (I can't reproduce it in stable.)
>
> #+begin_example
> Debugger entered--Lisp error: (args-out-of-range # 0
> 309298
When I change a task from "TODO" to "DONE", or "DONE" to "TODO", or
other todo keywords with [C-c C-t]. Org mode will raise bellowing error
"*randomly*". (I can't reproduce it in stable.)
#+begin_example
Debugger entered--Lisp error: (args-out-of-range # 0
3092985)
replace-match("")
(progn (go