From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: errors in org-mode with indentation Date: Wed, 21 Sep 2011 22:20:28 -0400 Message-ID: <5257.1316658028@alphaville.dokosmarshall.org> References: <11638.1316650461@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Ytt-0003sk-Ew for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 22:20:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6Yts-00035b-8A for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 22:20:33 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:48617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Ytr-00035T-Uz for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 22:20:32 -0400 In-Reply-To: Message from Thomas Faurbye Nielsen of "Thu, 22 Sep 2011 02:29:20 +0200." 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: Thomas Faurbye Nielsen Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Thomas Faurbye Nielsen wrote: > Hi Nick > > I've just updated my org-mode installation, and tried restarting my computer too. > > The error still happens, and I have attached the backtrace. What version of emacs are you running? The top of the backtrace says Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) indent-line-to(2) (if (featurep (quote xemacs)) (org-xemacs-without-invisibility (indent-line-to column)) (indent-line-to column)) org-indent-line-to(2) so if the number-or-marker-p applies to the 2, i.e. the argument of indent-line-to, there is a serious bug in emacs. I assume that that's not the case - indeed (number-or-marker-p 2) returns t (you might want to try it and verify that that is indeed the case for you). If it's something else, then you might want to try evaluating the following: (indent-line-to 2) If that gives you an error, then org is exonerated. In that case, you might want to load an uncompiled indent.el and step through the function with edebug (or see if you get a backtrace when evaluating the form above). But I must say, this is pretty weird. Nick > > On Thu, Sep 22, 2011 at 2:14 AM, Nick Dokos wrote: > > Thomas Faurbye Nielsen wrote: > > > Hi, > > > > Earlier today my org-mode indentation was working just perfectly. > > > > But now, every time I try to indent a new line with some text on it, or make a > > newline-and-indent I end up with the following error. > > > > org-indent-line-to: Wrong type argument: number-or-marker-p, nil > > > > Any ideas about why this error is there? > > > > If it was working earlier today and you have not updated anything, then > your current session might have gotten curdled. Restart your emacs and > see if it goes away. > > If not, post a backtrace: see section 1.4, "Feedback" of the org manual > on how to produce one. > > Nick > > > ---------------------------------------------------- > Alternatives: > > ----------------------------------------------------