From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KBk2GjmEiGJDjgAAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 08:18:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OOVfGTmEiGJmswAAG6o9tA (envelope-from ) for ; Sat, 21 May 2022 08:18:33 +0200 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 94DC53A48D for ; Sat, 21 May 2022 08:18:32 +0200 (CEST) Received: from localhost ([::1]:56096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsIRb-0007No-Gc for larch@yhetil.org; Sat, 21 May 2022 02:18:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrcvt-0001vl-L1 for emacs-orgmode@gnu.org; Thu, 19 May 2022 05:59:01 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:42598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrcvq-0003MY-8o for emacs-orgmode@gnu.org; Thu, 19 May 2022 05:59:01 -0400 Received: by mail-lj1-x233.google.com with SMTP id a23so5585876ljd.9 for ; Thu, 19 May 2022 02:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pbj71S/6neT5K8e6RHWGCzu22ztkEUUuhoJmdis+INI=; b=aUYBcna7KHmzVc4HVvEA0AF6gnURjdW8ZP6E7su7rvNrqtJAaStuVu4KHOtLy/92Qx HtaXoAh9w56QFhmpstb9NxE8RefQWYiynBJ3pt9d23kBfr7uiUxGMBtsa4toQDd2f+qx F9bNp4mv4a67OMElD9BA+qHsJofpEhtRsJ3Km8SOvRFR4U5NvkEYYSLsZC38RbaKXKD1 3hsA+L4mNkh11SMDMxmF5/ZoustdIgZOCZ0sbR5vu8MUTd0ZBxyYKU3SJ9c+uM6Yojxf Bh0X2iKz6YQhW7nfT8cT7IM2dDOBejkQ5Ab5XX7pxuXiYqte5D6+B2JjP0xV1y6Vqweq rlBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pbj71S/6neT5K8e6RHWGCzu22ztkEUUuhoJmdis+INI=; b=D73I//czWASXvh0vgr713FSGgav+/Cv6Jiy+HEl8KjCvcRvuvIgFNquUoj7OmvNk/a XM5KNa+K6RFVbPYpxsjQnLlE/NTBApfRIzdF6Pog84Ra/FoTxh9A3VbTUCBeX1KRbIbx lYZxxDnwkMhlViY1K07kqAH0RbCYfm4MJBOAw1/M3zxBdYgMUnpmZpT2yrUphoOxTYah MdBSpl9INfX8oFJRVUAOV4NpCLaduZw3PvbPiQRS6MwsZCO+vhovPFy8fe7Muc4Fckqx +JukIHo1Q4MfOvldpqm06fsDZm65kr+lMY50uofi9wGCS+JKYnAJME8cvjK0Hv+VSImo N4lw== X-Gm-Message-State: AOAM533FzN1bg3v1Q78VWgeAWPn4NnjsyN69GnMZYW/Kx9ypVnigYkXP ANuMCVVP+pBtYV6paWaetCrxkV9H6BFHHt6dm0k= X-Google-Smtp-Source: ABdhPJw8u/9VISybCGDV0XpFAwpvwUMjNzGUk7/u4qewnY080r6JSvS4ZbMm9yRnbs7b1ZpFiN+wd3+S/g6MSgY83kk= X-Received: by 2002:a2e:9b4e:0:b0:253:b917:aede with SMTP id o14-20020a2e9b4e000000b00253b917aedemr2215186ljj.275.1652954328576; Thu, 19 May 2022 02:58:48 -0700 (PDT) MIME-Version: 1.0 References: <87y1yzr0wf.fsf@localhost> <87k0ajxuj1.fsf@localhost> In-Reply-To: <87k0ajxuj1.fsf@localhost> From: imymorror wang Date: Thu, 19 May 2022 17:58:37 +0800 Message-ID: Subject: Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000095b73105df5a6b4d" Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=jagger.wangzg.2019@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 21 May 2022 02:16:18 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653113912; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=Pbj71S/6neT5K8e6RHWGCzu22ztkEUUuhoJmdis+INI=; b=l+Iv/ca8g7vhzC0E4KSgAaUJ3HIh0MIZTRbRe7qGK+MNzE2eun3H8xJEKpfu8IUJMrRFPm m6a2CM6Tzn0rhTmL2GlOKJwxj/kD9NKokkEed+7vpzMztbDxCC0TEvuuWBZfY+mtvaeoP7 orwy3qXqofcQULqOQMM7c593Bn+RMeJPB/rlLuYZ2e+9DI7DrlcKQOXDQkXjmzPedA7QqO YGNcSzgsXf+LyNzNYrckTvd4gcieVwM1I6M2uOwmBshBxeZ2XsSY6xmOpc2a2r7q2yt6EN mQsAcj0OPIMKvbJjA6+y5ZzDcdE9kQKJRJhkBhzfgnF0s+Ivka60cQkxksA9Yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653113912; a=rsa-sha256; cv=none; b=msav5cQzqnzUBvnJV4X4gQsi+mco4mQaAw7eTOkCsK5jdvrl6fCDHdomTpT39SCzn80Rhw gKFgQT+ZlE9nrCAjTIeGIeQjpzSXRlc0fGQaCkwSnhazMnK8s+E0eoniYJO/UOfvE5RH3j INwbLpjvkYYNxWoBJCQwHv6M33zQ8hUS+QnArlCjP3t4b7L9Oum0C4hgO3QYugqxNYIDid Qe7prljKiCwlNq1ltbd5xTZcoQzNb2R2bhD8Q7UhPp86KSYvqtn6SLt75jiyKgFRa7hhD3 ObzbR5LEJ1g+lNsVrZEd0CiABNLnc+8QacAT7QSNhgP1q+0r0KPWujg81VeqRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aUYBcna7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aUYBcna7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 94DC53A48D X-Spam-Score: -4.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: UHMtv4t7r1bH --00000000000095b73105df5a6b4d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable sorry. I sent a false message yesterday=E3=80=82I try again today. even upg= rade to Org mode version 9.5.3 (9.5.3-g277897), The problem still exists. But I find out something new=E3=80=82you can see my *conclusion*. And I send all my em= acs org state. - desktop environment - GNU Emacs 29.0.50 (build 2, x86_64-apple-darwin20.4.0, NS appkit-2022.44 Version 11.3.1 (Build 20E241)) of 2022-01-08 - Org mode version 9.5.3 (9.5.3-g277897) - bug description - influence factor - a large org file : 11053 lines=E3=80=821092 headlines=E3=80=82 - (setq org-startup-folded t) - org-indent-mode : (add-hook 'org-mode-hook 'org-indent-mode) - My Observation - if setting org-startup-folded t , enable org-indent-mode, open the large org file, emacs get stuck, the mouse can't move=E3=80=82 - if keeping org-startup-folded defaul value=EF=BC=88i.e "showeveryth= ing") , enable org-indent-mode , open the large org file, get a warning, but not get stuck: #+begin_quote Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected. Resetting. If this warning appears regularly, please report it to Org mode mailing list (M-x org-submit-bug-report). #+end_quote - if keeping org-startup-folded defaul value and disable org-indent-mode , open the large org file, everything works fine. - if setting org-startup-folded t, disable org-indent-mode, everything works fine. - conclusion - enalbe org-indent-mode cause the warning : "Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected." - setting org-startup-folded t, enable org-indent-mode. Having both causes emacs get stuck. - In addition=EF=BC=8Cit's not accurate to say that emacs get stuck. To = be precise, emacs get stuck, the mouse can't move for a few seconds and then it works find. ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ----------------------------------------------- Emacs : GNU Emacs 29.0.50 (build 2, x86_64-apple-darwin20.4.0, NS appkit-2022.44 Version 11.3.1 (Build 20E241)) of 2022-01-08 Package: Org mode version 9.5.3 (9.5.3-g277897 @ /Users/fuhongxue/env/emacs/vanilla/straight/straight/build/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-roam-db-location "~/central-management-system/zotero/roam-db/2022-03-13-daily-based.db" org-link-elisp-confirm-function 'yes-or-no-p org-hide-emphasis-markers t org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-download-file-format-function 'org-download-file-format-default org-roam-dailies-capture-templates '(("d" "default" entry "* %<%Y-%m-%d %H:%M> %?" :if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n#+filetags: :daily:\n")) ) org-startup-folded t org-roam-node-display-template "${tags:35} ${title:80}" org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-tag-alist '(("review" . 114) ("summary" . 115) ("case" . 99) ("book" . 98) ("economics" . 101) ("refile" . 114) ("twitter" . 116) ("youtube" . 121= ) ("emacs" . 101) ("weibo" . 119) ("how" . 104)) org-roam-find-file-hook '(org-roam-buffer--setup-redisplay-h org-roam--register-completion-functions-h org-roam--replace-roam-links-on-save-h org-roam-db-autosync--setup-update-on-save-h) org-archive-hook '(org-attach-archive-delete-maybe) org-footnote-auto-adjust t org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-font-lock-set-keywords-hook '(doom-themes-enable-org-fontification) org-image-actual-width nil org-mode-hook '(rasmus/org-prettify-symbols org-fragtog-mode org-indent-mode valign-mode #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-roam-ref-annotation-function 'org-roam-ref-read--annotation org-roam-directory "~/central-management-system/zotero/notes/2022-03-13-daily-based" org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-download-timestamp "%Y%m%d-%H%M%S_" org-roam-db-node-include-function #[0 "\300\207" [t] 1] org-download-abbreviate-filename-function 'file-relative-name org-latex-format-headline-function 'org-latex-format-headline-default-function org-confirm-shell-link-function 'yes-or-no-p org-download-annotate-function '(closure (t) (_link) "") org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"= ] outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-roam-dailies-directory "~/central-management-system/zotero/notes/2022-05-10-theme/daily" org-latex-classes '(("org-plain-latex" "\\documentclass{article}[102pt,letterpaper]\n \\tolerance=3D1000\n [NO-DEFAULT-PACKAGES]\n [EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-odt-format-headline-function 'org-odt-format-headline-default-function org-roam-capture-preface-hook '(org-roam-dailies--override-capture-time-h org-roam-capture--try-capture-to-ref-h) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize-h) org-roam-preview-function 'org-roam-preview-default-function org-src-mode-hook '(doom-modeline-set-org-src-modeline org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-latex-src-block-backend t org-log-buffer-setup-hook '(org-roam-log--setup) org-roam-capture-new-node-hook '(org-roam-capture--insert-captured-ref-h) org-preview-latex-image-directory "/Users/fuhongxue/env/emacs/cache/" org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-preview-latex-default-process 'dvisvgm org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-cycle-include-plain-lists 'integrate org-occur-hook '(org-first-headline-recenter) org-roam-log-setup-hook '(org-roam--register-completion-functions-h) org-metadown-hook '(org-babel-pop-to-session-maybe) org-roam-node-annotation-function 'org-roam-node-read--annotation org-link-parameters '(("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) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("roam" :follow org-roam-link-follow-link) ("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-roam-id-open) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302 Q \"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302 Q \"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302 Q \"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-roam-ui-browser-function 'browse-url org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) org-download-heading-lvl nil org-download-link-format-function 'org-download-link-format-function-default org-link-frame-setup '((file . find-file)) org-download-image-dir "images/" org-roam-indirect-buffer-hook '(org-roam--register-completion-functions-h) ) Ihor Radchenko =E4=BA=8E2022=E5=B9=B45=E6=9C=8818=E6= =97=A5=E5=91=A8=E4=B8=89 13:45=E5=86=99=E9=81=93=EF=BC=9A > imymorror wang writes: > > >> *Can you please share the exact output of M-x org-version?If you reall= y > >> see 9.5.1, then you likely have a "mixed" Org installationwith some > code in > >> your init file first loading built-in Org mode andthen loading the new= er > >> version. Such state can cause all kinds of bugs.* > > > > > > You are right. When I Update Org to the latest version *Org mode versi= on > > 9.5.3 (9.5.3-g277897)* . The bug is gone=E3=80=82 > > Sharing this to the mailing list (it was not in CC). > > Best, > Ihor > --00000000000095b73105df5a6b4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sorry.=C2=A0I sent a false message yesterday=E3=80=82= I try again today. even upgrade to=C2=A0Org mode version 9.5.3 (9.5.= 3-g277897),=C2=A0The problem still exists.=C2=A0But I find out something new=E3=80=82you can see my conclusion<= /b>. And I send all my emacs org state.

=C2=A0- desktop environment
=C2=A0 =C2=A0- GNU Emacs 29.0.50 (buil= d 2, x86_64-apple-darwin20.4.0, NS appkit-2022.44 Version 11.3.1 (Build 20E= 241)) of 2022-01-08
=C2=A0 =C2=A0- Org mode version 9.5.3 (9.5.3-g277897= )
=C2=A0- bug description
=C2=A0 =C2=A0- influence factor
=C2=A0 = =C2=A0 =C2=A0- a large org file : 11053 lines=E3=80=821092 headlines=E3=80= =82
=C2=A0 =C2=A0 =C2=A0- (setq org-startup-folded t)
=C2=A0 =C2=A0 = =C2=A0- org-indent-mode : (add-hook 'org-mode-hook 'org-indent-mode= )
=C2=A0 =C2=A0- My Observation
=C2=A0 =C2=A0 =C2=A0- if setting org-= startup-folded t , enable org-indent-mode, open the large org file, emacs g= et stuck, the mouse can't move=E3=80=82
=C2=A0 =C2=A0 =C2=A0- if kee= ping org-startup-folded defaul value=EF=BC=88i.e =C2=A0"showeverything= ") , enable org-indent-mode , open the large org file, get a warning, = but not get stuck:
=C2=A0 =C2=A0 =C2=A0 =C2=A0#+begin_quote
=C2=A0 = =C2=A0 =C2=A0 =C2=A0Warning (org-element-cache): org-element--cache: Unregi= stered buffer modifications detected. Resetting.
=C2=A0 =C2=A0 =C2=A0 = =C2=A0If this warning appears regularly, please report it to Org mode maili= ng list (M-x org-submit-bug-report).
=C2=A0 =C2=A0 =C2=A0 =C2=A0#+end_qu= ote
=C2=A0 =C2=A0 =C2=A0- if keeping org-startup-folded defaul value and= disable org-indent-mode , open the large org file, everything works fine.<= br>=C2=A0 =C2=A0 =C2=A0- if setting org-startup-folded t, disable org-inden= t-mode, everything works fine.
=C2=A0- conclusion
=C2=A0 =C2=A0- enal= be org-indent-mode cause the warning : "Warning (org-element-cache): o= rg-element--cache: Unregistered buffer modifications detected."
=C2= =A0 =C2=A0- setting org-startup-folded t, enable org-indent-mode. Having bo= th causes emacs get stuck.
=C2=A0 =C2=A0= -=C2=A0In=C2= =A0addition=EF=BC=8Cit's not accurate to say= that emacs get stuck. To be precise, emacs get stuck, the mouse can't = move for a few seconds and then it works find.

------------------------------------------= ---------------------------------------------------------------= -------------------------------------------------------<= span style=3D"color:rgb(61,61,61);font-family:Arial,sans-serif;font-size:12= px">-----------------------------------------------



Emacs =C2=A0: GNU Emac= s 29.0.50 (build 2, x86_64-apple-darwin20.4.0, NS appkit-2022.44 Version 11= .3.1 (Build 20E241))
=C2=A0of 2022-01-08
Package: Org mode version 9.= 5.3 (9.5.3-g277897 @ /Users/fuhongxue/env/emacs/vanilla/straight/straight/b= uild/org/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D
(setq
=C2=A0org-roam-db-location "~/central-management-syste= m/zotero/roam-db/2022-03-13-daily-based.db"
=C2=A0org-link-elisp-co= nfirm-function 'yes-or-no-p
=C2=A0org-hide-emphasis-markers t
=C2= =A0org-bibtex-headline-format-function #[257 "\300 \236A\207" [:t= itle] 3 "\n\n(fn ENTRY)"]
=C2=A0org-download-file-format-funct= ion 'org-download-file-format-default
=C2=A0org-roam-dailies-capture= -templates '(("d" "default" entry "* %<%Y-%= m-%d %H:%M> %?" :if-new
=C2=A0 =C2=A0 =C2=A0 (file+head &qu= ot;%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n#+filetags= : :daily:\n"))
=C2=A0 =C2=A0 =C2=A0)
=C2=A0org-startup-fold= ed t
=C2=A0org-roam-node-display-template "${tags:35} ${title:80}&q= uot;
=C2=A0org-persist-after-read-hook '(org-element--cache-persist-= after-read)
=C2=A0org-export-before-parsing-hook '(org-attach-expand= -links)
=C2=A0org-cycle-tab-first-hook '(org-babel-hide-result-toggl= e-maybe org-babel-header-arg-expand)
=C2=A0org-tag-alist '(("re= view" . 114) ("summary" . 115) ("case" . 99) (&quo= t;book" . 98) ("economics" . 101) ("refile" . 114)= ("twitter" . 116) ("youtube" . 121)
("emacs= " . 101) ("weibo" . 119) ("how" . 104))
=C2=A0o= rg-roam-find-file-hook '(org-roam-buffer--setup-redisplay-h org-roam--r= egister-completion-functions-h org-roam--replace-roam-links-on-save-h
= =C2=A0 org-roam-db-autosync--setup-update-on-save-h)
=C2=A0org-archive= -hook '(org-attach-archive-delete-maybe)
=C2=A0org-footnote-auto-adj= ust t
=C2=A0org-odt-format-inlinetask-function 'org-odt-format-inlin= etask-default-function
=C2=A0org-ascii-format-drawer-function #[771 &quo= t; \207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
=C2=A0org-c= ycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines= org-cycle-optimize-window-after-visibility-change)
=C2=A0org-persist-be= fore-read-hook '(org-element--cache-persist-before-read)
=C2=A0org-f= ont-lock-set-keywords-hook '(doom-themes-enable-org-fontification)
= =C2=A0org-image-actual-width nil
=C2=A0org-mode-hook '(rasmus/org-pr= ettify-symbols org-fragtog-mode org-indent-mode valign-mode
#[0 "= ;\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-= show-all append local] 5]
#[0 "\300\301\302\303\304$\207" [= add-hook change-major-mode-hook org-babel-show-result-all append local] 5] = org-babel-result-hide-spec
org-babel-hide-all-hashes)
=C2=A0org-ro= am-ref-annotation-function 'org-roam-ref-read--annotation
=C2=A0org-= roam-directory "~/central-management-system/zotero/notes/2022-03-13-da= ily-based"
=C2=A0org-latex-format-drawer-function #[514 "\207&= quot; [] 3 "\n\n(fn _ CONTENTS)"]
=C2=A0org-download-timestamp= "%Y%m%d-%H%M%S_"
=C2=A0org-roam-db-node-include-function #[0 = "\300\207" [t] 1]
=C2=A0org-download-abbreviate-filename-funct= ion 'file-relative-name
=C2=A0org-latex-format-headline-function = 9;org-latex-format-headline-default-function
=C2=A0org-confirm-shell-lin= k-function 'yes-or-no-p
=C2=A0org-download-annotate-function '(c= losure (t) (_link) "")
=C2=A0org-html-format-drawer-function #= [514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
=C2=A0out= line-isearch-open-invisible-function 'outline-isearch-open-invisible=C2=A0org-roam-dailies-directory "~/central-management-system/zotero/= notes/2022-05-10-theme/daily"
=C2=A0org-latex-classes '(("= org-plain-latex" "\\documentclass{article}[102pt,letterpaper]\n = =C2=A0 =C2=A0\\tolerance=3D1000\n =C2=A0 =C2=A0[NO-DEFAULT-PACKAGES]\n =C2= =A0 =C2=A0[EXTRA]"
=C2=A0 =C2=A0 =C2=A0("\\section{%s}"= ; . "\\section*{%s}") ("\\subsection{%s}" . "\\sub= section*{%s}") ("\\subsubsection{%s}" . "\\subsubsectio= n*{%s}")
=C2=A0 =C2=A0 =C2=A0("\\paragraph{%s}" . &quo= t;\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subpara= graph*{%s}"))
=C2=A0 =C2=A0 ("article" "\\documen= tclass[11pt]{article}" ("\\section{%s}" . "\\section*{%= s}") ("\\subsection{%s}" . "\\subsection*{%s}") =C2=A0 =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubse= ction*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}&quo= t;)
=C2=A0 =C2=A0 =C2=A0("\\subparagraph{%s}" . "\\sub= paragraph*{%s}"))
=C2=A0 =C2=A0 ("report" "\\docu= mentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}&q= uot;) ("\\chapter{%s}" . "\\chapter*{%s}")
=C2=A0= =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}") (&qu= ot;\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubs= ection{%s}" . "\\subsubsection*{%s}"))
=C2=A0 =C2=A0 (= "book" "\\documentclass[11pt]{book}" ("\\part{%s}&= quot; . "\\part*{%s}") ("\\chapter{%s}" . "\\chapt= er*{%s}")
=C2=A0 =C2=A0 =C2=A0("\\section{%s}" . "= ;\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{= %s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}&qu= ot;))
=C2=A0 =C2=A0 )
=C2=A0org-odt-format-headline-function '= org-odt-format-headline-default-function
=C2=A0org-roam-capture-preface-= hook '(org-roam-dailies--override-capture-time-h org-roam-capture--try-= capture-to-ref-h)
=C2=A0org-agenda-before-write-hook '(org-agenda-ad= d-entry-text)
=C2=A0org-capture-prepare-finalize-hook '(org-roam-cap= ture--install-finalize-h)
=C2=A0org-roam-preview-function 'org-roam-= preview-default-function
=C2=A0org-src-mode-hook '(doom-modeline-set= -org-src-modeline org-src-babel-configure-edit-buffer org-src-mode-configur= e-edit-buffer)
=C2=A0org-confirm-elisp-link-function 'yes-or-no-p=C2=A0org-latex-src-block-backend t
=C2=A0org-log-buffer-setup-hook = 9;(org-roam-log--setup)
=C2=A0org-roam-capture-new-node-hook '(org-r= oam-capture--insert-captured-ref-h)
=C2=A0org-preview-latex-image-direct= ory "/Users/fuhongxue/env/emacs/cache/"
=C2=A0org-speed-comman= d-hook '(org-speed-command-activate org-babel-speed-command-activate)=C2=A0org-html-format-inlinetask-function 'org-html-format-inlinetask= -default-function
=C2=A0org-ascii-format-inlinetask-function 'org-as= cii-format-inlinetask-default
=C2=A0org-odt-format-drawer-function #[514= "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
=C2=A0org-fol= d-core-isearch-open-function 'org-fold--isearch-reveal
=C2=A0org-pre= view-latex-default-process 'dvisvgm
=C2=A0org-latex-format-inlinetas= k-function 'org-latex-format-inlinetask-default-function
=C2=A0org-p= ersist-before-write-hook '(org-element--cache-persist-before-write)
= =C2=A0org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel= -header-arg-expand)
=C2=A0org-link-shell-confirm-function 'yes-or-no= -p
=C2=A0org-babel-pre-tangle-hook '(save-buffer)
=C2=A0org-agend= a-loop-over-headlines-in-active-region nil
=C2=A0org-cycle-include-plain= -lists 'integrate
=C2=A0org-occur-hook '(org-first-headline-rece= nter)
=C2=A0org-roam-log-setup-hook '(org-roam--register-completion-= functions-h)
=C2=A0org-metadown-hook '(org-babel-pop-to-session-mayb= e)
=C2=A0org-roam-node-annotation-function 'org-roam-node-read--anno= tation
=C2=A0org-link-parameters '(("eww" :follow org-eww-= open :store org-eww-store-link) ("rmail" :follow org-rmail-open := store org-rmail-store-link)
=C2=A0 =C2=A0 =C2=A0 ("mhe" :fo= llow org-mhe-open :store org-mhe-store-link)
=C2=A0 =C2=A0 =C2=A0 (&q= uot;irc" :follow org-irc-visit :store org-irc-store-link :export org-i= rc-export)
=C2=A0 =C2=A0 =C2=A0 ("info" :follow org-info-op= en :export org-info-export :store org-info-store-link)
=C2=A0 =C2=A0 = =C2=A0 ("gnus" :follow org-gnus-open :store org-gnus-store-link)<= br> =C2=A0 =C2=A0 =C2=A0 ("docview" :follow org-docview-open :e= xport org-docview-export :store org-docview-store-link)
=C2=A0 =C2=A0= =C2=A0 ("bibtex" :follow org-bibtex-open :store org-bibtex-store= -link)
=C2=A0 =C2=A0 =C2=A0 ("bbdb" :follow org-bbdb-open := export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-sto= re-link)
=C2=A0 =C2=A0 =C2=A0 ("w3m" :store org-w3m-store-l= ink) ("doi" :follow org-link-doi-open :export org-link-doi-export= )
=C2=A0 =C2=A0 =C2=A0 ("roam" :follow org-roam-link-follow= -link) ("attachment" :follow org-attach-follow :complete org-atta= ch-complete-link)
=C2=A0 =C2=A0 =C2=A0 ("id" :follow org-ro= am-id-open) ("file+sys") ("file+emacs") ("shell&qu= ot; :follow org-link--open-shell)
=C2=A0 =C2=A0 =C2=A0 ("news&qu= ot; :follow #[514 "\301\300\302 Q \"\207" ["news" = browse-url ":"] 6 "\n\n(fn URL ARG)"])
=C2=A0 =C2= =A0 =C2=A0 ("mailto" :follow #[514 "\301\300\302 Q \"\2= 07" ["mailto" browse-url ":"] 6 "\n\n(fn URL = ARG)"])
=C2=A0 =C2=A0 =C2=A0 ("https" :follow #[514 &q= uot;\301\300\302 Q \"\207" ["https" browse-url ":&= quot;] 6 "\n\n(fn URL ARG)"])
=C2=A0 =C2=A0 =C2=A0 ("h= ttp" :follow #[514 "\301\300\302 Q \"\207" ["http&= quot; browse-url ":"] 6 "\n\n(fn URL ARG)"])
=C2= =A0 =C2=A0 =C2=A0 ("ftp" :follow #[514 "\301\300\302 Q \&quo= t;\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL= ARG)"])
=C2=A0 =C2=A0 =C2=A0 ("help" :follow org-link= --open-help :store org-link--store-help) ("file" :complete org-li= nk-complete-file)
=C2=A0 =C2=A0 =C2=A0 ("elisp" :follow org= -link--open-elisp))
=C2=A0org-roam-ui-browser-function 'browse-url=C2=A0org-html-format-headline-function 'org-html-format-headline-def= ault-function
=C2=A0org-metaup-hook '(org-babel-load-in-session-mayb= e)
=C2=A0org-download-heading-lvl nil
=C2=A0org-download-link-format-= function 'org-download-link-format-function-default
=C2=A0org-link-f= rame-setup '((file . find-file))
=C2=A0org-download-image-dir "= images/"
=C2=A0org-roam-indirect-buffer-hook '(org-roam--regist= er-completion-functions-h)
=C2=A0)

Ihor Radchenko <yantar92@gmail.com> =E4=BA=8E2022=E5= =B9=B45=E6=9C=8818=E6=97=A5=E5=91=A8=E4=B8=89 13:45=E5=86=99=E9=81=93=EF=BC= =9A
imymorror wa= ng <ja= gger.wangzg.2019@gmail.com> writes:

>> *Can you please share the exact output of M-x org-version?If you r= eally
>> see 9.5.1, then you likely have a "mixed" Org installati= onwith some code in
>> your init file first loading built-in Org mode andthen loading the= newer
>> version. Such state can cause all kinds of bugs.*
>
>
> You are right. When I=C2=A0 Update Org to the latest version *Org mode= version
> 9.5.3 (9.5.3-g277897)* .=C2=A0 The bug is gone=E3=80=82

Sharing this to the mailing list (it was not in CC).

Best,
Ihor
--00000000000095b73105df5a6b4d--