On Wed, Nov 3, 2021 at 10:30 AM Aaron Jensen <aaronjen...@gmail.com> wrote: > > On Wed, Nov 3, 2021 at 7:43 AM Ihor Radchenko <yanta...@gmail.com> wrote: > > > > Aaron Jensen <aaronjen...@gmail.com> writes: > > > > > Here is a backtrace. The package it mentions is my own: > > > https://github.com/aaronjensen/emacs-orgonomic and > > > https://github.com/Somelauw/evil-org-mode is mentioned too. > > > > The mentions are ok. Backtrace should mention every command that > > actually changes the buffer. > > > > > Unregistered buffer modifications detected. Resetting. > > > ... > > > Backtrace: > > > " backtrace-to-string(nil) > > > org-element--cache-sync(#<buffer 20211101-journal>) > > > apply(org-element--cache-sync #<buffer 20211101-journal>) > > > timer-event-handler([t 0 0 599999 nil org-element--cache-sync > > > > > Backtrace: > > > org-element-cache diagnostics(20211101-journal): Nothing to remove. > > > No elements in cache after 361. Terminating. > > > > It looks like cache complete the synchronisation successfully, but some > > command bypasses modification detection. Unfortunately, I cannot catch > > the problematic command from backtrace. It acts "stealthily" for cache. > > Is there a specific kind of edit sequence that you did right before the > > warning appeared? > > > > Best, > > Ihor > > I don't recall, but I'll view-lossage next time it happens.
I got a warning when I did an org-agenda-todo to mark something as done. https://gist.github.com/aaronjensen/163913c0937376c9699eaa71eaa0959a No idea if it's related, but after a refile I save all org buffers eventually (defvar aj/org-save-all-timer nil) (defun aj/org-save-all-org-buffers-eventually (&rest _) (when aj/org-save-all-timer (cancel-timer aj/org-save-all-timer)) (setq aj/org-save-all-timer (run-with-idle-timer 2 nil 'org-save-all-org-buffers))) (use-feature org :config (advice-add 'org-refile :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-schedule :after 'aj/org-save-all-org-buffers-eventually) (add-hook 'org-trigger-hook 'aj/org-save-all-org-buffers-eventually)) (use-feature org-agenda :config (advice-add 'org-agenda-quit :before 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-todo :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-deadline :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-schedule :after 'aj/org-save-all-org-buffers-eventually) (advice-add 'org-agenda-refile :after 'aj/org-save-all-org-buffers-eventually))