unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / Atom feed
* org-archive-subtree errors when logbook lines are unindented
@ 2020-11-21  8:02 Duianto
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2020-11-21  8:03 UTC | newest]

Thread overview: (only message) (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

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git