From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 31GqHPR61mDgYwAAgWs5BA (envelope-from ) for ; Sat, 26 Jun 2021 02:55:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wEKzF/R61mC3ewAAbx9fmQ (envelope-from ) for ; Sat, 26 Jun 2021 00:55:16 +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 C1F89127C5 for ; Sat, 26 Jun 2021 02:55:15 +0200 (CEST) Received: from localhost ([::1]:53324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwwbK-0000w2-Qb for larch@yhetil.org; Fri, 25 Jun 2021 20:55:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwwap-0000uP-8k for emacs-orgmode@gnu.org; Fri, 25 Jun 2021 20:54:43 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:36532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwwal-0006Qd-WC for emacs-orgmode@gnu.org; Fri, 25 Jun 2021 20:54:42 -0400 Received: by mail-ej1-x634.google.com with SMTP id nd37so17941856ejc.3 for ; Fri, 25 Jun 2021 17:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=KHS8CtPKpciXESYqVX77TJdABogSGWEyNQk04/qv9m4=; b=jCxSLh7aVvAGO1pzFzeioutyyzFck+/pnxUv+JksuZK2mw0ovyk9kyiLNPR/IxrmTD LAmK/+kZYkH2TIg6RhVlVSeob0zQbpCtlVg1nDLR15l/oTLtYttdtcSVvX8ggbwjtnt1 ktWbhhGJ5uLA8kq722PJQdqLJHcnmTjGg6CDL7y2il+Jp00OzZsk0rZqkCEeY0MYj340 jrGyV06sl9omVhduPe3oF1UzUpbiF4UFbxaok6nrhCCR8LMjs91OZh1turLeYCPaofWE Fjw+4KhsmnO5JwNGw8jcH9lY3RWOZLj3P/5HO+lS/1FPlX+hxQbLSYKz4exAPQ/C05uG hyFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=KHS8CtPKpciXESYqVX77TJdABogSGWEyNQk04/qv9m4=; b=TwINXHF4f2NEtL+yU6zLNK6UAzCj7TO9VMBjA72Bq8o+xdDLTFsOCUFIcXbKCnoipc OCpdnFot9X6yccEsdBcuolhkE/9DQvfw3Q1ZdgL7jKp9i/OyUcD9ZfqCqgY5WzmJktD4 RaopvD/zxyY/8bNiQSu1GB4PaImUWX/EeWXQsKvIhDTrhbtFx2JEGdVCUKQg4cpmiHJw bswOfHXVLvpw2XVkIhx87m3lBOse9dc6UV7vf7WyPol4aNH7OhBa9hDW8FY1pQS+F67J NHj5FLop3YDoVoTPHip7Btv8+ptQ42fQEoEev1aN+iNaztJ0JF16M0+71lJ8efOuTZeg FQkA== X-Gm-Message-State: AOAM530udyhA11f8Y9Ch/q2QgM1+qnhgoysKdP2zSHAv1i8ZaZNDrkRO WoLkxZfHh0pT3xO3MmuH4xilqndaNoffzXNhzL7dPjUuIEPK1Q== X-Google-Smtp-Source: ABdhPJzXocB/W4uysBKXEL33ilwp1G1TZnsZybnbpAlfAqCzhzaWX+FZWQZymrdwgc77YjtXB0hVcMOaj9xxaUvmE2g= X-Received: by 2002:a17:907:387:: with SMTP id ss7mr14076314ejb.60.1624668876445; Fri, 25 Jun 2021 17:54:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a55:8c0a:0:b029:e9:8d1a:45bf with HTTP; Fri, 25 Jun 2021 17:54:35 -0700 (PDT) In-Reply-To: <87o8buaner.fsf@HUE.i-did-not-set--mail-host-address--so-tickle-me> References: <87o8buaner.fsf@HUE.i-did-not-set--mail-host-address--so-tickle-me> From: Dave D Date: Sat, 26 Jun 2021 10:54:35 +1000 Message-ID: Subject: Re: Bug: "before first headline" error when adding clock out note [9.4.6 (9.4.6-dist @ /home/wenlong/org-9.4.6/lisp/)] To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=wenlong.dai@gmail.com; helo=mail-ej1-x634.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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624668915; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KHS8CtPKpciXESYqVX77TJdABogSGWEyNQk04/qv9m4=; b=sbSXKh4WD/cMQHdJufp8Pqdmzw9B0FrA9ooSWqhrf9QV5x+GJArCLsDoodO8XoX5xrRWAD GSg0l7IIHZ+iax87KWakAHZykFXv/Aejm5FB3fbUH6O6EnSqMJ9XyC2Im1PxvA3sczqU9t Tdw74dWakMp/2KlraweOpViGKdzrNKNF2Et9vhN1geSwmhR1EKs2SqmsGEZIJryfKO+rpQ Oo+ZjlR/vRZ713xeXjrh0YhTx1VclE5rCmZCCb0MnhmPQO4q9BrJ5jjYLbjsywxe5CNGtR ngTJcO2jlm6NzW1OcJpnicyxMtSqdYTnEUJPpIlftebu07oZZAkn0KcKnh8K6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624668915; a=rsa-sha256; cv=none; b=cuXT+0jU+HCWcO1FbzxG5j0cQYy9Cta5OuI6jqSYyWxatA8HhRAk+zqVxRs/L6ERx2IRo1 rybwFa6Ha/XbxEabRG6rcjvbAm84eZmRs/Qekgw7fewmOaRRjkRL2dJAvW8wtV3YXX6NC1 dymp8b2/p3HXLLB3nVkPQqxqBaOqhXdo8i1L1V46/sxeBPSXGgIyryHHzCq37OZOqvDrrZ 7eoPa+mRHm42ZfRlpHT3FBn3ol+wD110ftTDizKEB/EDweVJXbLVMYCPthJAK4kbFMjNcf 24wb5LINRbxa4pbQAxNj0NHLkDiDoio1HMaRcQlL/u7/NW9TjxFfwIJQslUGug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jCxSLh7a; 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-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jCxSLh7a; 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-Migadu-Queue-Id: C1F89127C5 X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: yyPJLzhN+fqU It seems the error is caused by function org-clock-remove-empty-clock-drawer called by org-clock-out-hook I have removed that function from the hook for now as a workaround.