emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Ed Hirgelt <ehirgelt@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with archiving
Date: Mon, 02 Mar 2009 21:24:44 -0500	[thread overview]
Message-ID: <8931.1236047084@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Ed Hirgelt <ehirgelt@gmail.com> of "Mon, 02 Mar 2009 11:11:57 PST." <BD4A0617-6C11-4976-A57B-2E1984B1E41A@gmail.com>

Ed Hirgelt <ehirgelt@gmail.com> wrote:

> Using the latest from git:  when I try to archive a subtree with C-c 
> $, I get
> org-archive-subtree: Wrong type argument: number-or-marker-p, nil
> Archive is going to the default location, in my case Tasks.org_archive
> in the
> same directory.  This also failed with a newly created file.

Here's a little more information on what goes wrong:

---- foo.org -----

* foo
** bar
** baz

C-c $ (on the * foo line) then gives:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  org-get-valid-level(0 nil)
  call-interactively(org-archive-subtree nil nil)

the suspect line in org-archive.el being:

	  ;; Paste
	  (org-paste-subtree (org-get-valid-level level (and heading 1)))

heading was evaluated to "" and then set to nil, so (and heading 1) evaluates
to nil (it probably should evaluate to 0?), which is used in org-get-valid-level
as a number to be added to the level.

Should (and heading 1) become (if heading 1 0)?

  parent reply	other threads:[~2009-03-03  2:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 19:11 Ed Hirgelt
2009-03-02 19:30 ` Nick Dokos
2009-03-03  2:24 ` Nick Dokos [this message]
2009-03-03  5:54 ` Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2007-07-12 18:10 J. David Boyd
2007-07-13  4:21 ` Carsten Dominik
2007-07-13 14:18   ` J. David Boyd
2007-07-14  6:01     ` Carsten Dominik
2007-07-14 16:31       ` J. David Boyd

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:

  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=8931.1236047084@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=ehirgelt@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).