emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with archiving
@ 2007-07-12 18:10 J. David Boyd
  2007-07-13  4:21 ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: J. David Boyd @ 2007-07-12 18:10 UTC (permalink / raw)
  To: emacs-orgmode


When I attempt to archive a DONE item, using 5.02, I get

( this is from the message buffer)
Copied: Subtree with 326 characters
if: Cannot promote to level 0. UNDO to recover if necessary

In the status line, I see
Cannot promote to level 0. UNDO to recover if necessary

Now, the item itself IS copied to my archive file, but it does not contain an
archive time stamp, and the original item is left alone in the original file.

Any ideas?  I haven't changed any config settings since around the last of the
4.xx series of ORG.

Dave

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem with archiving
  2007-07-12 18:10 J. David Boyd
@ 2007-07-13  4:21 ` Carsten Dominik
  2007-07-13 14:18   ` J. David Boyd
  0 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2007-07-13  4:21 UTC (permalink / raw)
  To: J. David Boyd; +Cc: emacs-orgmode

Fixed, thanks.

This was a bug related to the fact that the space after stars in
a headline is now required.  There may be more little things
like this, please keep reporting.

- Carsten

On Jul 12, 2007, at 20:10, J. David Boyd wrote:

>
> When I attempt to archive a DONE item, using 5.02, I get
>
> ( this is from the message buffer)
> Copied: Subtree with 326 characters
> if: Cannot promote to level 0. UNDO to recover if necessary
>
> In the status line, I see
> Cannot promote to level 0. UNDO to recover if necessary
>
> Now, the item itself IS copied to my archive file, but it does not 
> contain an
> archive time stamp, and the original item is left alone in the 
> original file.
>
> Any ideas?  I haven't changed any config settings since around the 
> last of the
> 4.xx series of ORG.
>
> Dave
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem with archiving
  2007-07-13  4:21 ` Carsten Dominik
@ 2007-07-13 14:18   ` J. David Boyd
  2007-07-14  6:01     ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: J. David Boyd @ 2007-07-13 14:18 UTC (permalink / raw)
  To: emacs-orgmode


Archiving works almost perfectly in 5.03, thanks.

Here's the new problem.

Defined in my .emacs, I have

 '(org-todo-keywords (quote ("TODO" "REQUIREMENTS" "ACCOMPLISH" "VALIDATE"
 "TEST" "|" "CANCEL" "DONE")))

What is happening is that, when I archive an item, it gets moved correctly,
the archive stamp is written correctly, but instead of saying DONE, it says
CANCEL.

Actually, is this a bug?  Or should I just reorder my list to have DONE come
before CANCEL.  I thought that I read somewhere that DONE had to be the last
item in the line, but I don't seem to see that now that I'm trying to find it.

Dave



Carsten Dominik <dominik@science.uva.nl> writes:

> Fixed, thanks.
>
> This was a bug related to the fact that the space after stars in
> a headline is now required.  There may be more little things
> like this, please keep reporting.
>
> - Carsten
>
> On Jul 12, 2007, at 20:10, J. David Boyd wrote:
>
>>
>> When I attempt to archive a DONE item, using 5.02, I get
>>
>> ( this is from the message buffer)
>> Copied: Subtree with 326 characters
>> if: Cannot promote to level 0. UNDO to recover if necessary
>>
>> In the status line, I see
>> Cannot promote to level 0. UNDO to recover if necessary
>>
>> Now, the item itself IS copied to my archive file, but it does not
>> contain an
>> archive time stamp, and the original item is left alone in the
>> original file.
>>
>> Any ideas?  I haven't changed any config settings since around the
>> last of the
>> 4.xx series of ORG.
>>
>> Dave
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem with archiving
  2007-07-14  6:01     ` Carsten Dominik
@ 2007-07-14 16:31       ` J. David Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: J. David Boyd @ 2007-07-14 16:31 UTC (permalink / raw)
  To: emacs-orgmode


Thanks, because putting DONE in front of CANCEL works just fine for me.  Now
everything works very well.

Thank you for all your efforts in providing what has to be the best support
for a software project that I have ever encountered.

<huzzah> <huzzah> Long live Carsten!

Dave




Carsten Dominik <dominik@science.uva.nl> writes:

> On Jul 13, 2007, at 16:18, J. David Boyd wrote:
>
>>
>> Archiving works almost perfectly in 5.03, thanks.
>>
>> Here's the new problem.
>>
>> Defined in my .emacs, I have
>>
>>  '(org-todo-keywords (quote ("TODO" "REQUIREMENTS" "ACCOMPLISH"
>> "VALIDATE"
>>  "TEST" "|" "CANCEL" "DONE")))
>>
>> What is happening is that, when I archive an item, it gets moved
>> correctly,
>> the archive stamp is written correctly, but instead of saying DONE,
>> it says
>> CANCEL.
>
> Org-mode simply picks the first state after "|" for this.
> You could re-order, or we could allow a string value for
> org-archive-mark-done, in order to specify the keyword to be used.
>
>>
>> Actually, is this a bug?  Or should I just reorder my list to have
>> DONE come
>> before CANCEL.  I thought that I read somewhere that DONE had to be
>> the last
>> item in the line, but I don't seem to see that now that I'm trying
>> to find it.
>
> If you don't care about the sequence of DONE and CANCEL, you can just
> reorder.
> Since we have the "|" to separate TODO and DONE states, DONE does not
> have to be last.
> Only if you do not specify "|", then the last keyword is used as a state
> meaning that the item is done.
>
> - Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Problem with archiving
@ 2009-03-02 19:11 Ed Hirgelt
  2009-03-02 19:30 ` Nick Dokos
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ed Hirgelt @ 2009-03-02 19:11 UTC (permalink / raw)
  To: emacs-orgmode

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.

Thanks,
Ed

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem with archiving
  2009-03-02 19:11 Problem with archiving Ed Hirgelt
@ 2009-03-02 19:30 ` Nick Dokos
  2009-03-03  2:24 ` Nick Dokos
  2009-03-03  5:54 ` Carsten Dominik
  2 siblings, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2009-03-02 19:30 UTC (permalink / raw)
  To: Ed Hirgelt; +Cc: emacs-orgmode

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

I can see this too:

Org-mode version 6.23trans
GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-07-01 on alphaville.zko.hp.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem with archiving
  2009-03-02 19:11 Problem with archiving Ed Hirgelt
  2009-03-02 19:30 ` Nick Dokos
@ 2009-03-03  2:24 ` Nick Dokos
  2009-03-03  5:54 ` Carsten Dominik
  2 siblings, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2009-03-03  2:24 UTC (permalink / raw)
  To: Ed Hirgelt; +Cc: emacs-orgmode

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)
  org-archive-subtree(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)?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem with archiving
  2009-03-02 19:11 Problem with archiving Ed Hirgelt
  2009-03-02 19:30 ` Nick Dokos
  2009-03-03  2:24 ` Nick Dokos
@ 2009-03-03  5:54 ` Carsten Dominik
  2 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2009-03-03  5:54 UTC (permalink / raw)
  To: Ed Hirgelt; +Cc: org-mode Org-Mode

Fixed, thanks.

Nick, also thanks for so quickly confirming this bug and for
the correct analysis.

- Carsten

On Mar 2, 2009, at 8:11 PM, Ed Hirgelt 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.
>
> Thanks,
> Ed
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-03  5:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-02 19:11 Problem with archiving Ed Hirgelt
2009-03-02 19:30 ` Nick Dokos
2009-03-03  2:24 ` Nick Dokos
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

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