Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
Ihor Radchenko writes: >> valign-mode causes the problem. Try these steps to reproduce the problem : >> add-hook for valign and open a large org file, then try moving the mouse a >> few times,quickly TAB and SHIFT-TAB a few times. > > Thanks! I have opened an issue in valign repo: > https://github.com/casouri/valign/issues/30 > > This problem needs to be fixed on valign side. After further investigation and discussions with Emacs devs, the issue has been fixed on Org side. Fixed. Best, Ihor
Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
imymorror wang writes: >>Now, it is confusing. I am unable to reproduce the warning on my side >>even with org-fragtog and valign installed. > > valign-mode causes the problem. Try these steps to reproduce the problem : > add-hook for valign and open a large org file, then try moving the mouse a > few times,quickly TAB and SHIFT-TAB a few times. Thanks! I have opened an issue in valign repo: https://github.com/casouri/valign/issues/30 This problem needs to be fixed on valign side. Best, Ihor
Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
>Now, it is confusing. I am unable to reproduce the warning on my side >even with org-fragtog and valign installed. valign-mode causes the problem. Try these steps to reproduce the problem : add-hook for valign and open a large org file, then try moving the mouse a few times,quickly TAB and SHIFT-TAB a few times. Ihor Radchenko 于2022年5月21日周六 12:37写道: > imymorror wang writes: > > >> Can you share the values of change-major-mode-hook and org-mode-hook? > > I uploaded all *emacs **current state* in recent e-mail . > > Sorry, I missed that. Unfortunately I do not see anything suspicious > there. > > Now, it is confusing. I am unable to reproduce the warning on my side > even with org-fragtog and valign installed. > > Can you try to reproduce the problem starting from clean Emacs state > (emacs -Q)? See https://orgmode.org/manual/Feedback.html > > >> 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. > > Just use "Reply All" in future. > > Best, > Ihor >
Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
>Can you try to reproduce the problem starting from clean Emacs state >(emacs -Q)? See https://orgmode.org/manual/Feedback.html thank you for reminding me to use this method. I found out why. package *valign-mode*(https://github.com/casouri/valign) causes the problem: (add-hook 'org-mode-hook #'valign-mode) If I don't add-hook for valign-mode, everything works fine. Ihor Radchenko 于2022年5月21日周六 12:37写道: > imymorror wang writes: > > >> Can you share the values of change-major-mode-hook and org-mode-hook? > > I uploaded all *emacs **current state* in recent e-mail . > > Sorry, I missed that. Unfortunately I do not see anything suspicious > there. > > Now, it is confusing. I am unable to reproduce the warning on my side > even with org-fragtog and valign installed. > > Can you try to reproduce the problem starting from clean Emacs state > (emacs -Q)? See https://orgmode.org/manual/Feedback.html > > >> 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. > > Just use "Reply All" in future. > > Best, > Ihor >
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
> 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 () #) #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 于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 > 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 > > > > 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 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 >
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
sorry. I sent a false message yesterday。I try again today. even upgrade to Org mode version 9.5.3 (9.5.3-g277897), The problem still exists. But I find out something new。you can see my *conclusion*. And I send all my emacs 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。1092 headlines。 - (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。 - if keeping org-startup-folded defaul value(i.e "showeverything") , 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,it'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: == (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-fo
Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
> 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 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 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 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
Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
imymorror wang writes: >> Can you share the values of change-major-mode-hook and org-mode-hook? > I uploaded all *emacs **current state* in recent e-mail . Sorry, I missed that. Unfortunately I do not see anything suspicious there. Now, it is confusing. I am unable to reproduce the warning on my side even with org-fragtog and valign installed. Can you try to reproduce the problem starting from clean Emacs state (emacs -Q)? See https://orgmode.org/manual/Feedback.html >> 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. Just use "Reply All" in future. Best, Ihor
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
imymorror wang writes: > - if keeping org-startup-folded defaul value(i.e "showeverything") , > 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 Is the no more warning text? The warning you are seeing should continue with The buffer is:... Current command:... Chars modified:... Buffer modified:... Backtrace:... ... Best, Ihor
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
imymorror wang writes: >> *Can you please share the exact output of M-x org-version?If you really >> 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 newer >> version. Such state can cause all kinds of bugs.* > > > You are right. When I Update Org to the latest version *Org mode version > 9.5.3 (9.5.3-g277897)* . The bug is gone。 Sharing this to the mailing list (it was not in CC). Best, Ihor
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
William Denton writes: > I'm also having problems like this with large files. I haven't been able to > narrow it down but I'll try what you say about org-startup-folded. > > Do you also have a problem where sometimes TAB or SHIFT-TAB on a heading has > no > effect? Some Org files seem to get broken after editing them for a while, > and > some folding no longer works (that is, some headings stay closed, while > others > can be cycled), and the only way to fix it is to reload. > > I'll turn on debugging and see what that says. Before you try anything weird, can you do the following: (1) Update Org to the latest version and make sure that M-x org-version reports Org 9.5.3 (2) Remove org-persist-directory (3) Try to see if the error persists Best, Ihor
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
imymorror wang writes: > - 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.1 Thanks for reporting! Can you please share the exact output of M-x org-version? If you really see 9.5.1, then you likely have a "mixed" Org installation with some code in your init file first loading built-in Org mode and then loading the newer version. Such state can cause all kinds of bugs. The latest Org version is Org mode version 9.5.3 (release_9.5.3-1799-ge73d5b) The latest stable Org version (distributed via ELPA) is also 9.5.3 Best, Ihor
Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
I'm also having problems like this with large files. I haven't been able to narrow it down but I'll try what you say about org-startup-folded. Do you also have a problem where sometimes TAB or SHIFT-TAB on a heading has no effect? Some Org files seem to get broken after editing them for a while, and some folding no longer works (that is, some headings stay closed, while others can be cycled), and the only way to fix it is to reload. I'll turn on debugging and see what that says. Bill On 17 May 2022, imymorror wang wrote: - 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.1 - bug description - influence factor - a large org file : 11053 lines。1092 headlines。 - (setq org-startup-folded t) - org-indent-mode : (add-hook 'org-mode-hook 'org-indent-mode) - My Observation - if setting org-startup-folded t , open the large org file, emacs get stuck, the mouse can't move。 - if keeping org-startup-folded defaul value(i.e "showeverything") , enable org-indent-mode , open the large org file, get a warning: #+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 -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada
[BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected"
- 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.1 - bug description - influence factor - a large org file : 11053 lines。1092 headlines。 - (setq org-startup-folded t) - org-indent-mode : (add-hook 'org-mode-hook 'org-indent-mode) - My Observation - if setting org-startup-folded t , open the large org file, emacs get stuck, the mouse can't move。 - if keeping org-startup-folded defaul value(i.e "showeverything") , enable org-indent-mode , open the large org file, get a warning: #+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