> 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-variable).
the result is

```
change-major-mode-hook is a variable defined in ‘C source code’.

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 ‘kill-all-local-variables’ runs this before doing 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 ‘org.el’.

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
    ()
    #<bytecode 0xbfc639b2ee0448f>)
   #f(compiled-function
      ()
      #<bytecode 0x361e3d66626201b>)
   rasmus/org-prettify-symbols org-fragtog-mode org-indent-mode valign-mode
#f(compiled-function
      ()
      #<bytecode 0x1e1b158dce77c68>)
   #f(compiled-function
      ()
      #<bytecode 0x1e1b158c9df1068>)
   org-babel-result-hide-spec org-babel-hide-all-hashes)
Original value was nil
```

imymorror wang <jagger.wangzg.2...@gmail.com> 于2022年5月21日周六 11:58写道:

> > 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 ---------
> 发件人: Ihor Radchenko <yanta...@gmail.com>
> Date: 2022年5月21日周六 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 <jagger.wangzg.2...@gmail.com>
>
>
>
> imymorror wang <jagger.wangzg.2...@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 Org
> > 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
>

Reply via email to