emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: imymorror wang <jagger.wangzg.2019@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
Date: Sat, 21 May 2022 12:11:49 +0800	[thread overview]
Message-ID: <CAGVe722Sx_ADFDQegB0Fw=jjAObG=5-4a9QwuJ58Rqn_d3bJmw@mail.gmail.com> (raw)
In-Reply-To: <CAGVe720eqUWM6sw=0qA2zZ_=wnE8errrnKO3uWWcOp8Abbj3TA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3366 bytes --]

> 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.2019@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 <yantar92@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.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 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
>

[-- Attachment #2: Type: text/html, Size: 5105 bytes --]

  reply	other threads:[~2022-05-21  6:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-16 22:59 [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" imymorror wang
2022-05-17 16:38 ` William Denton
2022-05-18  3:14   ` Ihor Radchenko
2022-05-18  3:10 ` Ihor Radchenko
     [not found]   ` <CAGVe721ckg9U=NSy87TigYQ6SQcKd6zwg4h30LgmqDb6m-uWog@mail.gmail.com>
2022-05-18  5:46     ` Ihor Radchenko
2022-05-19  9:58       ` imymorror wang
2022-05-20  7:55         ` Ihor Radchenko
     [not found]           ` <CAGVe723h4bBCZsH95=JpQ3gjxGKfT8R0whU6=QvBGybR+Bb7Hw@mail.gmail.com>
     [not found]             ` <87leuv3bzt.fsf@localhost>
2022-05-21  3:58               ` Fwd: " imymorror wang
2022-05-21  4:11                 ` imymorror wang [this message]
2022-05-21  4:38                 ` Ihor Radchenko
2022-05-21  7:09                   ` imymorror wang
2022-05-21  7:26                   ` imymorror wang
2022-05-21  7:49                     ` Ihor Radchenko
2022-07-18  0:20                       ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGVe722Sx_ADFDQegB0Fw=jjAObG=5-4a9QwuJ58Rqn_d3bJmw@mail.gmail.com' \
    --to=jagger.wangzg.2019@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).