Org-mode mailing list
 help / color / mirror / Atom feed
From: Duianto <otnaiud@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-archive-subtree errors when logbook lines are unindented
Date: Sat, 21 Nov 2020 09:02:30 +0100
Message-ID: <CAE-tX7i5ew3ED3YX6jjx57qNuRtV0AumWKuE0W83YUUReKE5-g@mail.gmail.com> (raw)

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


             reply	other threads:[~2020-11-21  8:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-21  8:02 Duianto [this message]
2020-12-09  4:54 ` Kyle Meyer
2020-12-09  4:58 ` Kyle Meyer
2020-12-09  5:02 ` Kyle Meyer

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://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE-tX7i5ew3ED3YX6jjx57qNuRtV0AumWKuE0W83YUUReKE5-g@mail.gmail.com \
    --to=otnaiud@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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/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 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

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