From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Hhu9IcnJuF+uawAA0tVLHw (envelope-from ) for ; Sat, 21 Nov 2020 08:03:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MOMQHcnJuF/pCgAA1q6Kng (envelope-from ) for ; Sat, 21 Nov 2020 08:03:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 225F794042B for ; Sat, 21 Nov 2020 08:03:19 +0000 (UTC) Received: from localhost ([::1]:44140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgNrY-0008QU-Tp for larch@yhetil.org; Sat, 21 Nov 2020 03:03:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgNr8-0008QF-Kj for emacs-orgmode@gnu.org; Sat, 21 Nov 2020 03:02:51 -0500 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]:38814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgNr0-0001jV-Gt for emacs-orgmode@gnu.org; Sat, 21 Nov 2020 03:02:49 -0500 Received: by mail-io1-xd2b.google.com with SMTP id n129so12398810iod.5 for ; Sat, 21 Nov 2020 00:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Y/ILd11PYzNbKnSsRpptrdY3lbrQRYdMNgqOvnYk4PM=; b=of/p6nM5d9c99YheOBQ//qvcYNB7D5SoCTYIL1NoVR7fMAhZJnpqzSi6npKK4+SRhU /CXwKSM2FrAjEmutWvvfXxsEiiZqe2wbGo6FMNQFibJOLYougqW249LnxoJ9/8neGJTU SZRtKKOyK2sn4iT501dY87ndpHdIRSXSmqJtmoSY3gTQA4sTIEC60ACRk8ejHuLOecq9 8MLX1225xck2gtziht7uqbNjLDhfXs738tNjcWfW4C3BNkUBH+Fei0SfyjEe1XZcUkCY xOQO86boSsGkzC9otTWY0rKuZ9EBxw/51xo9OD1yW0/AVjJ7SY1zVqGdM/MDUUhCB8f4 FL9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Y/ILd11PYzNbKnSsRpptrdY3lbrQRYdMNgqOvnYk4PM=; b=Ug9/7VR3hO/8ozA9ffXcs2GTxJpGMmSNaBoqIhAaHaPLnp1Fs9jp0xnyocYHfaZwhx Xk5ayWvkTD6f4i5XN2y8H+MDWQME8tOwfNOcpCXLjsi2vvpcxbYjsmJ0W4Pu7HeDHycp vzi+XXvAp4g/GKex0jF1DY7Svomxaq8TsPUkzs2e+rshGdHocZDT0W/TtV+hsW4jBxIp Frd8t9c4ckWC01HF4cR+NAC8AEPsyaJy3jaSB9Y8er75JUh2ElABkpKEEWBGXODvG5Jj dQY44IzivCZX6CBxT8ea4kBvTO8jqnURJy8449VQJQp84FRNEBBd2C2ngOogzFjjdkUd Kd5w== X-Gm-Message-State: AOAM530gO/DJSSLvqwBbitWc808e5h1kSAhe+OZrsrMW7R6mH/crFHcq AK+Z8kA9Xk5VnlpHmfrhfsRGCRvc6Cz8MIqnMP/zbHdK5EBpaA== X-Google-Smtp-Source: ABdhPJx2dtx8HGALXPxR1kOYgEPdlVjMVOWtnQbKMxug18hVIrBB4ygQSTh68CMf6oMCWWXVv2ipPf7C6IwUjj+8YG4= X-Received: by 2002:a02:830f:: with SMTP id v15mr21994321jag.12.1605945760358; Sat, 21 Nov 2020 00:02:40 -0800 (PST) MIME-Version: 1.0 From: Duianto Date: Sat, 21 Nov 2020 09:02:30 +0100 Message-ID: Subject: org-archive-subtree errors when logbook lines are unindented To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2b; envelope-from=otnaiud@gmail.com; helo=mail-io1-xd2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=of/p6nM5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: obxtwhSsm7mu 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