* [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" @ 2022-05-16 22:59 imymorror wang 2022-05-17 16:38 ` William Denton 2022-05-18 3:10 ` Ihor Radchenko 0 siblings, 2 replies; 14+ messages in thread From: imymorror wang @ 2022-05-16 22:59 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1074 bytes --] - 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 [-- Attachment #2: Type: text/html, Size: 1190 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 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 1 sibling, 1 reply; 14+ messages in thread From: William Denton @ 2022-05-17 16:38 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1755 bytes --] 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-17 16:38 ` William Denton @ 2022-05-18 3:14 ` Ihor Radchenko 0 siblings, 0 replies; 14+ messages in thread From: Ihor Radchenko @ 2022-05-18 3:14 UTC (permalink / raw) To: William Denton; +Cc: imymorror wang, emacs-orgmode William Denton <wtd@pobox.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 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:10 ` Ihor Radchenko [not found] ` <CAGVe721ckg9U=NSy87TigYQ6SQcKd6zwg4h30LgmqDb6m-uWog@mail.gmail.com> 1 sibling, 1 reply; 14+ messages in thread From: Ihor Radchenko @ 2022-05-18 3:10 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode imymorror wang <jagger.wangzg.2019@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CAGVe721ckg9U=NSy87TigYQ6SQcKd6zwg4h30LgmqDb6m-uWog@mail.gmail.com>]
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" [not found] ` <CAGVe721ckg9U=NSy87TigYQ6SQcKd6zwg4h30LgmqDb6m-uWog@mail.gmail.com> @ 2022-05-18 5:46 ` Ihor Radchenko 2022-05-19 9:58 ` imymorror wang 0 siblings, 1 reply; 14+ messages in thread From: Ihor Radchenko @ 2022-05-18 5:46 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode imymorror wang <jagger.wangzg.2019@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-18 5:46 ` Ihor Radchenko @ 2022-05-19 9:58 ` imymorror wang 2022-05-20 7:55 ` Ihor Radchenko 0 siblings, 1 reply; 14+ messages in thread From: imymorror wang @ 2022-05-19 9:58 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 11305 bytes --] 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-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=1000\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 <yantar92@gmail.com> 于2022年5月18日周三 13:45写道: > imymorror wang <jagger.wangzg.2019@gmail.com> 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 > [-- Attachment #2: Type: text/html, Size: 15382 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-19 9:58 ` imymorror wang @ 2022-05-20 7:55 ` Ihor Radchenko [not found] ` <CAGVe723h4bBCZsH95=JpQ3gjxGKfT8R0whU6=QvBGybR+Bb7Hw@mail.gmail.com> 0 siblings, 1 reply; 14+ messages in thread From: Ihor Radchenko @ 2022-05-20 7:55 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode imymorror wang <jagger.wangzg.2019@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CAGVe723h4bBCZsH95=JpQ3gjxGKfT8R0whU6=QvBGybR+Bb7Hw@mail.gmail.com>]
[parent not found: <87leuv3bzt.fsf@localhost>]
* Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" [not found] ` <87leuv3bzt.fsf@localhost> @ 2022-05-21 3:58 ` imymorror wang 2022-05-21 4:11 ` imymorror wang 2022-05-21 4:38 ` Fwd: " Ihor Radchenko 0 siblings, 2 replies; 14+ messages in thread From: imymorror wang @ 2022-05-21 3:58 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1682 bytes --] > 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: 2820 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-21 3:58 ` Fwd: " imymorror wang @ 2022-05-21 4:11 ` imymorror wang 2022-05-21 4:38 ` Fwd: " Ihor Radchenko 1 sibling, 0 replies; 14+ messages in thread From: imymorror wang @ 2022-05-21 4:11 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode [-- 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 --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-21 3:58 ` Fwd: " imymorror wang 2022-05-21 4:11 ` imymorror wang @ 2022-05-21 4:38 ` Ihor Radchenko 2022-05-21 7:09 ` imymorror wang 2022-05-21 7:26 ` imymorror wang 1 sibling, 2 replies; 14+ messages in thread From: Ihor Radchenko @ 2022-05-21 4:38 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode imymorror wang <jagger.wangzg.2019@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-21 4:38 ` Fwd: " Ihor Radchenko @ 2022-05-21 7:09 ` imymorror wang 2022-05-21 7:26 ` imymorror wang 1 sibling, 0 replies; 14+ messages in thread From: imymorror wang @ 2022-05-21 7:09 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1425 bytes --] >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 <yantar92@gmail.com> 于2022年5月21日周六 12:37写道: > imymorror wang <jagger.wangzg.2019@gmail.com> 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 > [-- Attachment #2: Type: text/html, Size: 3233 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-21 4:38 ` Fwd: " Ihor Radchenko 2022-05-21 7:09 ` imymorror wang @ 2022-05-21 7:26 ` imymorror wang 2022-05-21 7:49 ` Ihor Radchenko 1 sibling, 1 reply; 14+ messages in thread From: imymorror wang @ 2022-05-21 7:26 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1365 bytes --] >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 <yantar92@gmail.com> 于2022年5月21日周六 12:37写道: > imymorror wang <jagger.wangzg.2019@gmail.com> 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 > [-- Attachment #2: Type: text/html, Size: 2038 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-21 7:26 ` imymorror wang @ 2022-05-21 7:49 ` Ihor Radchenko 2022-07-18 0:20 ` Ihor Radchenko 0 siblings, 1 reply; 14+ messages in thread From: Ihor Radchenko @ 2022-05-21 7:49 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode imymorror wang <jagger.wangzg.2019@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Fwd: [BUG] when open a large org file, emacs get stuck and show a warning "org-element--cache: Unregistered buffer modifications detected" 2022-05-21 7:49 ` Ihor Radchenko @ 2022-07-18 0:20 ` Ihor Radchenko 0 siblings, 0 replies; 14+ messages in thread From: Ihor Radchenko @ 2022-07-18 0:20 UTC (permalink / raw) To: imymorror wang; +Cc: emacs-orgmode Ihor Radchenko <yantar92@gmail.com> 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-07-18 0:19 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2022-05-21 4:38 ` Fwd: " 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
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).