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