emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] errors in org-mode with indentation


From: Nick Dokos
Subject: Re: [O] errors in org-mode with indentation
Date: Wed, 21 Sep 2011 22:20:28 -0400

Thomas Faurbye Nielsen <address@hidden> 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 <address@hidden> wrote:
> 
>     Thomas Faurbye Nielsen <address@hidden> 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:
> 
> ----------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]