From: Nick Dokos <nicholas.dokos@hp.com>
To: Thomas Faurbye Nielsen <archanium@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: errors in org-mode with indentation
Date: Wed, 21 Sep 2011 22:20:28 -0400 [thread overview]
Message-ID: <5257.1316658028@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Thomas Faurbye Nielsen <archanium@gmail.com> of "Thu, 22 Sep 2011 02:29:20 +0200." <CAPfXEu+EOrU8Jrark8+m6geAugvdgCcO1sn8rHGqi-QHcbV_MA@mail.gmail.com>
Thomas Faurbye Nielsen <archanium@gmail.com> 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 <nicholas.dokos@hp.com> wrote:
>
> Thomas Faurbye Nielsen <archanium@gmail.com> 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:
>
> ----------------------------------------------------
prev parent reply other threads:[~2011-09-22 2:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-21 23:15 errors in org-mode with indentation Thomas Faurbye Nielsen
2011-09-22 0:14 ` Nick Dokos
2011-09-22 0:29 ` Thomas Faurbye Nielsen
2011-09-22 2:20 ` Nick Dokos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5257.1316658028@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=archanium@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).