From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8H9LHGOFiGIYCQEAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 08:23:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OLppHGOFiGKCkAAA9RJhRA (envelope-from ) for ; Sat, 21 May 2022 08:23:31 +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 1475B10953 for ; Sat, 21 May 2022 08:23:26 +0200 (CEST) Received: from localhost ([::1]:34734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsIWK-0003hH-DA for larch@yhetil.org; Sat, 21 May 2022 02:23:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsGTG-0005OU-Fk for emacs-orgmode@gnu.org; Sat, 21 May 2022 00:12:08 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:46053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsGTC-00039h-Va for emacs-orgmode@gnu.org; Sat, 21 May 2022 00:12:05 -0400 Received: by mail-lj1-x235.google.com with SMTP id v9so2254076lja.12 for ; Fri, 20 May 2022 21:12:02 -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=a286ogbm/llx9YzHNVermJMMbTlAJOfQPMmvhh4YuG4=; b=bx2PAx/TeO5hWOnwtN/rnLQ07KxDs8cJItc2yZ1mpqIbRd34zSmGcOxAmO4OsC+MhJ ACxtqgut2twCxQOX6pDVjhRb1/u68gx8jRR24iAjX+3SccebXgYTLpU+N+fCpMhdk35s zkIKinNqA/biHk1QvcMXkzVbnN/iETbW034mVzjAihJhAKq9bxDEc4F7UXirFsFnIHK5 NTi2teLgCsIpPpC2lAXmaHoeAwz9AvnNaIOzZIfhA92NHnwBH8g+pSsui8LtXtW42EKu KnGqMSqDRhzdShzY1P/YW6hm4cl8RFAzA2VZK5Zi7yx60fbhE2YfQNgrKoCfw2yv7Rn/ x4SA== 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=a286ogbm/llx9YzHNVermJMMbTlAJOfQPMmvhh4YuG4=; b=caYG1Pz55/PLAGrLDarZUKXN0I4iuPiw+472b08OdRUjDLI86SivVv/rPwphZ33C1A XWPQJa+Xv27uBmfQO2BiOju06wF6v0KmilHeqyC6ASsrXL2+LKG44oTTtdAIDXiVSA0D BWvrPDWbYiSIiPkb0hcyzifABkmDZL++4Uh6o5RpvuIIOqZ+Qr6TEOK6Os8pkZDxRXd6 QmxbaRvd9k1bcru7mj5OsN+ETiHO3nspWSbjXCTKOuAIFgE5hh0CAKBcZq/tlc8oerwq NQKyi5mLN5FlY8dwR68S8jOJcHrpKPhQcfTDQSiblWnFEyObVGDWyn51BFMG5qzLCaMf D+Jg== X-Gm-Message-State: AOAM530Snj4l/mALiZdoWafCcWGIbQxGw5qSqqvan3sgmPosuyMSKMCq tlxCJxi8fyTIwWpDeF5qUvLVF9znoIB20p8q8yI= X-Google-Smtp-Source: ABdhPJyl/nKH0rDGzUrUgT8wQfNAJAJ+o2SGhlpN0NMynvS1eF/FDowlBALogsCuaQ0aG8YgfbqOwSAegPEFrxTkx88= X-Received: by 2002:a2e:a805:0:b0:24a:fc47:d6ca with SMTP id l5-20020a2ea805000000b0024afc47d6camr6992227ljq.297.1653106320923; Fri, 20 May 2022 21:12:00 -0700 (PDT) MIME-Version: 1.0 References: <87y1yzr0wf.fsf@localhost> <87k0ajxuj1.fsf@localhost> <874k1k4p0i.fsf@localhost> <87leuv3bzt.fsf@localhost> In-Reply-To: From: imymorror wang Date: Sat, 21 May 2022 12:11:49 +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="00000000000008dfda05df7dcf2f" Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=jagger.wangzg.2019@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, URI_HEX=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 21 May 2022 02:16:27 -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=1653114211; 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=a286ogbm/llx9YzHNVermJMMbTlAJOfQPMmvhh4YuG4=; b=K7L4puJNq/E31ykLjjZQccpMMB1b/Qbp/lzc1KVrck6DnW6EPgLto1H7aAWnv5oLMGBEbR 9orbk/qwQhJEkPRAmAiG3hGWETuMUK4sP215/mzglpmxdS9JNIj9e1e6orS3AYgcHX+3Mb 9qcxp6uLPyE6O+ltlPnm08dFN4EM9MMXTjk/dcQSSqhjzY/CbLtsYj1NKJm7CcQQc1DjpB 4Jrmg+Zah4FWJ4uOupKBbN5YfP3eG1FsxzbiFVPhDMOZlqnDdYWOmu1R1RJJ6CmNRoWC+t Z+MSA1yJp4dzRWEmOktomSj7aFJf+v6uWXzlr3tYDjxrm+VJe2dJGQQvGy6QLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653114211; a=rsa-sha256; cv=none; b=NyZG1tkiicf5l4jg0Zk80cKZphl19wgYC9lD2r9U27J6A+15T09qph5RMTkTOYD09bCTvG 60pvocrSM5MH8QxB4JhuszGpuODtHTR34zPTErAGHMGYcR3bVJfOdvRn04MoU8Xl9hO1WH LrR4ib1uiHWyX9CCwXW85dqDj0349pOLC/XVPWW5igAjw183y7xAo7Kw0JPBkNQ1BCsdWl eZXdP3Co2bK6+MWFCD12cMvA5REDiXSrmO8ZHpTrsiQTjbPVZPeL8gDgAuRzmBsFtzk6cW TH1LjNUKDHaZiKb8UOZHyMkSXnPrq01NN680F0xssBFgTF3J8MZ9JCc36Rigkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="bx2PAx/T"; 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.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="bx2PAx/T"; 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: 1475B10953 X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8qNrEZyf/mDQ --00000000000008dfda05df7dcf2f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Can you share the values of change-major-mode-hook and org-mode-hook? I search change-major-mode-hook and org-mode-hook by C-h v(describe-variabl= e). the result is ``` change-major-mode-hook is a variable defined in =E2=80=98C source code=E2= =80=99. Its value is (font-lock-change-mode t) Local in buffer *Help*; global value is (global-company-mode-cmhh yas-global-mode-cmhh smartparens-global-mode-cmhh ctrlf-mode-cmhh ace-pinyin-global-mode-cmhh meow-global-mode-cmhh global-eldoc-mode-cmhh global-font-lock-mode-cmhh) Normal hook run before changing the major mode of a buffer. The function =E2=80=98kill-all-local-variables=E2=80=99 runs this before do= ing anything else. This variable may be risky if used as a file-local variable. Probably introduced at or before Emacs version 19.23. ``` ``` org-mode-hook is a variable defined in =E2=80=98org.el=E2=80=99. Its value is shown below. Mode hook for Org mode, run after the mode was turned on. This variable may be risky if used as a file-local variable. You can customize this variable. Value: (#f(compiled-function () #) #f(compiled-function () #) rasmus/org-prettify-symbols org-fragtog-mode org-indent-mode valign-mode #f(compiled-function () #) #f(compiled-function () #) org-babel-result-hide-spec org-babel-hide-all-hashes) Original value was nil ``` imymorror wang =E4=BA=8E2022=E5=B9=B45=E6=9C= =8821=E6=97=A5=E5=91=A8=E5=85=AD 11:58=E5=86=99=E9=81=93=EF=BC=9A > > Can you share the values of change-major-mode-hook and org-mode-hook? > I uploaded all *emacs **current state* in recent e-mail . > > > Also, do you deliberately drop the CC to emacs-orgmode@gnu.org and > prefer the conversation to be not public? > sorry. I'm not good at email communication. This is my first attempt to > submit a bug report to Emacs. Maybe I could add CC to > emacs-orgmode@gnu.org on the recent email that shows all my emacs current > state info. > > ---------- Forwarded message --------- > =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Ihor Radchenko > Date: 2022=E5=B9=B45=E6=9C=8821=E6=97=A5=E5=91=A8=E5=85=AD 09:33 > Subject: Re: [BUG] when open a large org file, emacs get stuck and show a > warning "org-element--cache: Unregistered buffer modifications detected" > To: imymorror wang > > > > imymorror wang writes: > > > sorry . the whole warning text is (twice): > > #+begin_quote > > Warning (org-element-cache): org-element--cache: Unregistered buffer > > modifications detected. Resetting. > > If this warning appears regularly, please report the warning text to Or= g > > mode mailing list (M-x org-submit-bug-report). > > The buffer is: 20220404203228-2022_04_04_20_29_emacs_outline_emacs.org > > Current command: (next-line 14194 14229) > > Chars modified: 14194 > > Buffer modified: 14229 > > Backtrace: > > nil Disable showing Disable logging > > Thanks! > It appears that something is editing the buffer either before or after > loading Org mode. > > Can you share the values of change-major-mode-hook and org-mode-hook? > > Also, do you deliberately drop the CC to emacs-orgmode@gnu.org and > prefer the conversation to be not public? > > Best, > Ihor > --00000000000008dfda05df7dcf2f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Can you share the = values of change-major-mode-hook and org-mode-hook?
I search=C2=A0change-major-mode-hook and org-mode-hook=C2=A0by C-h v(describe-variable). the result is=C2= =A0

```
change-major-mode-hook is a vari= able defined in =E2=80=98C source code=E2=80=99.

Its value is (font-= lock-change-mode t)
Local in buffer *Help*; global value is
(global-= company-mode-cmhh yas-global-mode-cmhh smartparens-global-mode-cmhh ctrlf-m= ode-cmhh ace-pinyin-global-mode-cmhh meow-global-mode-cmhh global-eldoc-mod= e-cmhh global-font-lock-mode-cmhh)

Normal hook run before changing t= he major mode of a buffer.
The function =E2=80=98kill-all-local-variable= s=E2=80=99 runs this before doing anything else.

=C2=A0 This variabl= e may be risky if used as a file-local variable.
=C2=A0 Probably introdu= ced at or before Emacs version 19.23.
```

```
org-mode-hook is a variable defined in =E2=80=98org.el= =E2=80=99.

Its value is shown below.

Mode hook for Org mode, = run after the mode was turned on.

=C2=A0 This variable may be risky = if used as a file-local variable.
=C2=A0 You can customize this variable= .

Value:
(#f(compiled-function
=C2=A0 =C2=A0 ()
=C2=A0 =C2= =A0 #<bytecode 0xbfc639b2ee0448f>)
=C2=A0 =C2=A0#f(compiled-functi= on
=C2=A0 =C2=A0 =C2=A0 ()
=C2=A0 =C2=A0 =C2=A0 #<bytecode 0x361e3= d66626201b>)
=C2=A0 =C2=A0rasmus/org-prettify-symbols org-fragtog-mod= e org-indent-mode valign-mode #f(compiled-function
=C2=A0 =C2= =A0 =C2=A0 ()
=C2=A0 =C2=A0 =C2=A0 #<bytecode 0x1e1b158dce7= 7c68>)
=C2=A0 =C2=A0#f(compiled-function
=C2=A0 =C2=A0 =C2=A0 ()=C2=A0 =C2=A0 =C2=A0 #<bytecode 0x1e1b158c9df1068>)
=C2=A0 =C2= =A0org-babel-result-hide-spec org-babel-hide-all-hashes)
Original value = was nil
```

imymorror wang <jagger.wangzg.2019@gmail.com> =E4=BA=8E2022= =E5=B9=B45=E6=9C=8821=E6=97=A5=E5=91=A8=E5=85=AD 11:58=E5=86=99=E9=81=93=EF= =BC=9A
> Can you share the values of change-major-mode-hook and org-mo= de-hook?
I uploaded all=C2=A0emacs=C2=A0current st= ate=C2=A0in=C2=A0recent e-mail .

> Al= so, do you deliberately drop the CC to=C2=A0emacs-orgmode@gnu.org=C2=A0and prefer the c= onversation to be not public?
sorry.=C2=A0I'm not good at email comm= unication. This is my first attempt to submit a bug report to Emacs. Maybe = I could add CC to=C2=A0=C2=A0emacs-orgmode@gnu.org=C2=A0on the recent email=C2=A0that s= hows all my emacs current state info.

---------- Forwarded message ---------=E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Ihor Radchenko <yantar92@gmail.com>Date: 2022=E5=B9=B45=E6=9C=8821=E6=97=A5=E5=91=A8=E5=85=AD 09:33
Subje= ct: Re: [BUG] when open a large org file, emacs get stuck and show a warnin= g "org-element--cache: Unregistered buffer modifications detected"= ;
To: imymorror wang <jagger.wangzg.2019@gmail.com>


imymorror wang <jagger.wangzg.2019@gmail.com> writes:

> sorry . the whole warning text is (twice):
> #+begin_quote
> Warning (org-element-cache): org-element--cache: Unregistered buffer > modifications detected. Resetting.
> If this warning appears regularly, please report the warning text to O= rg
> mode mailing list (M-x org-submit-bug-report).
> The buffer is: 20220404203228-202= 2_04_04_20_29_emacs_outline_emacs.org
>=C2=A0 Current command: (next-line 14194 14229)
>=C2=A0 Chars modified: 14194
>=C2=A0 Buffer modified: 14229
>=C2=A0 Backtrace:
> nil Disable showing Disable logging

Thanks!
It appears that something is editing the buffer either before or after
loading Org mode.

Can you share the values of change-major-mode-hook and org-mode-hook?

Also, do you deliberately drop the CC to emacs-orgmode@gnu.org and
prefer the conversation to be not public?

Best,
Ihor
--00000000000008dfda05df7dcf2f--