emacs-orgmode@gnu.org archives
 help / color / mirror / code / 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	[thread overview]
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 ` org-archive-subtree errors when logbook lines are unindented 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://www.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
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

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