- 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.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------