From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: wrong-type-argument when changing TODO state [7.7] Date: Sun, 28 Aug 2011 13:09:49 -0400 Message-ID: <27177.1314551389@alphaville.dokosmarshall.org> References: <4E5A2556.50106@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxizc-0005Iq-SB for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 13:17:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qxizb-0004m7-S8 for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 13:17:56 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:39101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxizb-0004lZ-Oh for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 13:17:55 -0400 In-Reply-To: Message from Stelian Iancu of "Sun, 28 Aug 2011 07:24:06 EDT." <4E5A2556.50106@gmail.com> 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: Stelian Iancu Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Stelian Iancu wrote: > > I am trying to switch between TODO and DONE states with Shift-Right > Arrow and I get a (wrong-type-argument stringp nil) error. > > Please find attached the backtrace. > > > Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) > of 2010-12-11 on raven, modified by Debian > Package: Org-mode version 7.7 > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > looking-at(nil) > (save-excursion (beginning-of-line 1) (looking-at org-todo-line-regexp)) > (and (outline-on-heading-p) (not (bolp)) (save-excursion (beginning-of-line 1) (looking-at org-todo-line-regexp)) (< (point) (+ 2 ...))) > (if (and (outline-on-heading-p) (not ...) (save-excursion ... ...) (< ... ...)) (progn (goto-char ...) (and ... ...))) > (let* ...) > (catch (quote exit) ...) > (save-excursion (catch (quote exit)...) > (let ...) > org-todo(right) > call-interactively(org-todo) > (let ((current-prefix-arg arg)) (call-interactively command)) > org-call-with-arg(org-todo right) > (let ...) > (cond ...) > org-shiftright(nil) > call-interactively(org-shiftright nil nil) The problem is that org-todo-line-regexp is nil. This variable is made buffer-local and initialized when the buffer's mode is set to org-mode. Are you sure that your buffer's major mode is org-mode? Nick