emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-archive-subtree errors when logbook lines are unindented
@ 2020-11-21  8:02 Duianto
  2020-12-09  4:54 ` Kyle Meyer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Duianto @ 2020-11-21  8:02 UTC (permalink / raw)
  To: emacs-orgmode

Source:
org-archive-subtree does not work on subtrees with clock entries #14033
https://github.com/syl20bnr/spacemacs/issues/14033

Description:
The error message:
indent-line-to: Wrong type argument: wholenump, -1

appears when org-archive-subtree (C-c C-x C-s) is called on a
subheading that has :LOGBOOK: lines without indentation.

With indentation:

* a
** b
  :LOGBOOK:
  CLOCK: [2020-08-10 Mon 17:49]--[2020-08-10 Mon 18:34] => 0:45
  :END:

With the cursor on the subheading: ** b
After pressing: C-c C-x C-s

The buffer contents changed to:

* a

The *Messages* buffer shows:

(New file)
Copied: Subtree(s) with 89 characters
Saving file c:/Users/username/Temp/14033/org-archive-subtree.org_archive...
Wrote c:/Users/username/Temp/14033/org-archive-subtree.org_archive
Cut: Subtree(s) with 89 characters
Subtree archived in file:
c:/Users/username/Temp/14033/org-archive-subtree.org_archive

The file: org-archive-subtree.org_archive contains:

#    -*- mode: org -*-


Archived entries from file c:/Users/username/Temp/14033/org-archive-subtree.org


* b
  :PROPERTIES:
  :ARCHIVE_TIME: 2020-11-21 Sat 08:12
  :ARCHIVE_FILE: c:/Users/username/Temp/14033/org-archive-subtree.org
  :ARCHIVE_OLPATH: a
  :ARCHIVE_CATEGORY: org-archive-subtree
  :END:
 :LOGBOOK:
 CLOCK: [2020-08-10 Mon 17:49]--[2020-08-10 Mon 18:34] => 0:45
 :END:

Without indentation:

* a
** b
:LOGBOOK:
CLOCK: [2020-08-10 Mon 17:49]--[2020-08-10 Mon 18:34] => 0:45
:END:

With the cursor on the subheading: ** b
After pressing: C-c C-x C-s

The buffer contents didn't change.

The *Messages* buffer shows:

(New file)
Copied: Subtree(s) with 83 characters
indent-line-to: Wrong type argument: wholenump, -1


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

* Re: org-archive-subtree errors when logbook lines are unindented
  2020-11-21  8:02 org-archive-subtree errors when logbook lines are unindented Duianto
@ 2020-12-09  4:54 ` Kyle Meyer
  2020-12-09  4:58 ` Kyle Meyer
  2020-12-09  5:02 ` Kyle Meyer
  2 siblings, 0 replies; 4+ messages in thread
From: Kyle Meyer @ 2020-12-09  4:54 UTC (permalink / raw)
  To: Duianto; +Cc: emacs-orgmode

Duianto writes:

> Source:
> org-archive-subtree does not work on subtrees with clock entries #14033
> https://github.com/syl20bnr/spacemacs/issues/14033
>
> Description:
> The error message:
> indent-line-to: Wrong type argument: wholenump, -1

Thanks for reporting.  This should be fixed by 2eb5f0741.


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

* Re: org-archive-subtree errors when logbook lines are unindented
  2020-11-21  8:02 org-archive-subtree errors when logbook lines are unindented Duianto
  2020-12-09  4:54 ` Kyle Meyer
@ 2020-12-09  4:58 ` Kyle Meyer
  2020-12-09  5:02 ` Kyle Meyer
  2 siblings, 0 replies; 4+ messages in thread
From: Kyle Meyer @ 2020-12-09  4:58 UTC (permalink / raw)
  To: Duianto; +Cc: emacs-orgmode

Duianto writes:

> Source:
> org-archive-subtree does not work on subtrees with clock entries #14033
> https://github.com/syl20bnr/spacemacs/issues/14033
>
> Description:
> The error message:
> indent-line-to: Wrong type argument: wholenump, -1

Thanks for reporting.  This should be fixed by 2eb5f0741.


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

* Re: org-archive-subtree errors when logbook lines are unindented
  2020-11-21  8:02 org-archive-subtree errors when logbook lines are unindented Duianto
  2020-12-09  4:54 ` Kyle Meyer
  2020-12-09  4:58 ` Kyle Meyer
@ 2020-12-09  5:02 ` Kyle Meyer
  2 siblings, 0 replies; 4+ messages in thread
From: Kyle Meyer @ 2020-12-09  5:02 UTC (permalink / raw)
  To: Duianto; +Cc: emacs-orgmode

Duianto writes:

> Source:
> org-archive-subtree does not work on subtrees with clock entries #14033
> https://github.com/syl20bnr/spacemacs/issues/14033
>
> Description:
> The error message:
> indent-line-to: Wrong type argument: wholenump, -1

Thanks for reporting.  This should be fixed by 2eb5f0741.


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

end of thread, other threads:[~2020-12-09  5:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21  8:02 org-archive-subtree errors when logbook lines are unindented Duianto
2020-12-09  4:54 ` Kyle Meyer
2020-12-09  4:58 ` Kyle Meyer
2020-12-09  5:02 ` Kyle Meyer

Code repositories for project(s) associated with this 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).