From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Dlt8ISwM1WAJvAAAgWs5BA (envelope-from ) for ; Fri, 25 Jun 2021 00:50:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +M6KHCwM1WBjYAAA1q6Kng (envelope-from ) for ; Thu, 24 Jun 2021 22:50:20 +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 B29351CCDE for ; Fri, 25 Jun 2021 00:50:19 +0200 (CEST) Received: from localhost ([::1]:60670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwYAs-0005KY-2B for larch@yhetil.org; Thu, 24 Jun 2021 18:50:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwY9X-0005KO-1C for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 18:48:55 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:46849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwY9U-0005ZV-7F for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 18:48:54 -0400 Received: by mail-pf1-x42f.google.com with SMTP id x16so6436093pfa.13 for ; Thu, 24 Jun 2021 15:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=d8lnnLo4nRbNFEQtVIKce2ZcznpKjSElAeWb5aKlltY=; b=jz1msDjvHtCESojMJ+4FtdLXODe7fpJ3kjLM1KxpbT7eh9dBOnH2WjLuu8qd9L9Fe9 wOVvY4PJ8pmScXXcfC2RvmtdOYhMHOnQGNWZYmNYO9ySlfPyJ63xexV9j3ip/+mN7m9P cmSVRtTefde0hgMmIz7DqaPH5kieskspBMXZPbYP6uvzQhQr/loh1A1/Eq3db84KlBmt w6lEqdutqzx1CYQlRT3jPV/5jENvvbJ3Gr9ppdsp52l8jENCcnzfl3gs1y5J/WqvkVOQ 6+3qUyNXqZABw58KZRkVnU1NcMoqvORj9BNPZ/sDgJTN6ocdmjwaPYFEF9sSrwOKspNY LIcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=d8lnnLo4nRbNFEQtVIKce2ZcznpKjSElAeWb5aKlltY=; b=pWudY8UaT2RSbyX2UYGTg8CSEh0EqYocCaUEQ9jYmN/NiPVmAWW/hHlVXI22Hj8BrM TvbjLTs8PCWoDZvxDDiR4K5Tt+1OAN5bLEf57Z9ru03yZAQE3MIAXUMhptW+rbU61r9u ZpiVx2F1fNUobB+n1eO5tss3BnZ3YeLDyYA6Snex7BacMLU5ORtGao1+dBRJIXI0vOG3 vXy9GzKBA/s1B23nxw9eg6s0/vd19Mm+Ts85dRvVSR6DdeIpk0Ey79/sS6qNeTnBzOnS XsJT9Ek6rV5C9pkbWXVhgiECZvTUtT/jdy3vtuvman1PcNECo6/fwnZbAZlw/z3QoQCg mzYQ== X-Gm-Message-State: AOAM5330Ybl8Nxpb1w1mEKcEkZ391dNI3YLAiRZqPKDR7dg7jqeD4Wss ICKCYqwh5NyfosAMuuTrVxGYXGMNqZg= X-Google-Smtp-Source: ABdhPJyqdXbm5a/q7t4hwKkJruL/1lddFEqDXtEJ9zEeD9FXlKVPbPQzvPHbzLZumamPKFiphvhFdA== X-Received: by 2002:a63:5511:: with SMTP id j17mr6840039pgb.191.1624574930141; Thu, 24 Jun 2021 15:48:50 -0700 (PDT) Received: from localhost (pa49-199-34-32.pa.vic.optusnet.com.au. [49.199.34.32]) by smtp.gmail.com with ESMTPSA id u20sm3775688pfn.189.2021.06.24.15.48.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 15:48:49 -0700 (PDT) From: Dave Dai To: emacs-orgmode@gnu.org Subject: Bug: "before first headline" error when adding clock out note [9.4.6 (9.4.6-dist @ /home/wenlong/org-9.4.6/lisp/)] Date: Fri, 25 Jun 2021 08:48:41 +1000 Message-ID: <87pmwaang6.fsf@HUE.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=wenlong.dai@gmail.com; helo=mail-pf1-x42f.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=1624575019; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=d8lnnLo4nRbNFEQtVIKce2ZcznpKjSElAeWb5aKlltY=; b=he4eJLB6QR2kgSOCpf6E6c9m5H4kOd5sCzzQDVhZUaOSvot3HJwCZGPeIu5NSAJ5UX3XRD +BG8KmrYhRV/9kig6e61gZwdqGDRaB5eoGQd1kB/+abLsHXO4uTA0m0sHhFSJXZqUh7Kdk WSBWDH5TdpsXH3S83MFiN1U+fhDDJCipyVgLusgIPxRDctlVZ2ItHVXoYDKYYsrC+IBSZX 9SEwpCDVkarvfCiInOlkDEhIFPFq4HI62Q8iX0Pq1b87aicL6HZ6+HPUUu/cQD8DP1hNmK LTWi8/u2pc2vvOQU5u35efYDMt6rSJu41oJGHlUtzRMwiwT1bUjmLXT/kKO75w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624575019; a=rsa-sha256; cv=none; b=WVQCXWW0g+zHRPBRs32ufL69zYPvoVw29+QlVCJCqW7jteFtFlkf5Zjn+gJmPAf5nQC2MN D2plpZHnJy4doD/45PPn5akRWAEqPtqlSuYbtgDAGEE5/ALI4/sXaAInepzqMrmRhZoU7Y /JcFhXrGEwDT1svIyFaGqk5aoRHNZ7eaUxakLt9MuOUAUCqxi+sDHL/Mt9KaCFmhl5+kgX sfHeQ3Y9Pnd6wxZJo2q9cB0yk22hyTxNG5pkPoTaBkixB9JK3Bl3KOfJFjc5qCbZckpXMB MOWiR2nXDuPEQFk3E0rj3cGlEckt44hI1xMmK2Zb09LBaGw2LE6dULGgI3fIlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jz1msDjv; 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=jz1msDjv; 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: B29351CCDE X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: LmG1kxJR+qWP ------------------------------------------------------------------------ Steps to reproduce the bug: 1. download orgmode 9.4.6 from https://orgmode.org/org-9.4.6.tar.gz and extract to home folder 2. start clean emacs instance with 'emacs -Q' 3. evaluate (add-to-list 'load-path "~/org-9.4.6/lisp") 4. create a new org file, create a new heading and clock in 5. evaluate (setq org-log-note-clock-out t) 6. clock out. Once the "*org note*" buffer appears, the error message "before first headline" will occur. I could reproduce this with both emacs 27 and 28. The org version bundled with emacs seems to work fine. Only the latest version from git repo or from the website has the problem. Emacs : GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2021-05-24 Package: Org mode version 9.4.6 (9.4.6-dist @ /home/wenlong/org-9.4.6/lisp/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-log-note-clock-out t org-reveal-start-hook '(org-decrypt-entry) org-mode-hook '((closure (org--rds reftex-docstruct-symbol org-element-greater-elements org-clock-history org-agenda-current-date org-with-time org-defdecode org-def org-read-date-inactive org-ans2 org-ans1 org-columns-current-fmt-compiled org-clock-current-task org-clock-effort org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode org-end-time-was-given org-time-was-given org-log-note-extra org-log-note-purpose org-log-post-message org-last-inserted-timestamp org-last-changed-timestamp org-entry-property-inherited-from org-blocked-by-checkboxes org-state org-agenda-headline-snapshot-before-repeat org-agenda-start-on-weekday org-agenda-buffer-tmp-name org-priority-regexp org-mode-abbrev-table org-mode-syntax-table buffer-face-mode-face org-tbl-menu org-org-menu org-struct-menu org-entities org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list org-emphasis-alist org-emphasis-regexp-components org-export-registered-backends org-modules org-babel-load-languages org-id-overriding-file-name org-indent-indentation-per-level org-element-paragraph-separate ffap-url-regexp org-inlinetask-min-level t) nil (add-hook 'change-major-mode-hook 'org-show-all 'append 'local) ) (closure (org-src-window-setup *this* org-babel-confirm-evaluate-answer-no org-babel-tangle-uncomment-comments org-src-preserve-indentation org-src-lang-modes org-edit-src-content-indentation org-babel-library-of-babel t) nil (add-hook 'change-major-mode-hook 'org-babel-show-result-all 'append 'local) ) org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function '(closure (org-id-locations org-agenda-search-view-always-boolean org-agenda-overriding-header t) (entry) (cdr (assq :title entry))) org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-export-before-parsing-hook '(org-attach-expand-links) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow (closure ((scheme . "news") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("mailto" :follow (closure ((scheme . "mailto") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("https" :follow (closure ((scheme . "https") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("http" :follow (closure ((scheme . "http") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("ftp" :follow (closure ((scheme . "ftp") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-link-elisp-confirm-function 'yes-or-no-p )