Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > I'm seeing another issue and I don't know if it is related. When I > save an org-capture my emacs spins for a long time. I C-g w/ > toggle-debug-on-quit and got this: > > > Debugger entered--Lisp error: (quit) > org-element--parse-generic-emphasis("/" italic) > org-element-italic-parser() > org-element--object-lex... > org-element--parse-objects... > org-element-parse-buffer() org-element--parse-generic-emphasis has been introduced in very recent commits. However, I haven't seen issues with this new function. I tried to run org-element-parse-buffer from a capture buffer. It works just fine for me. It would be helpful if you provide a repro. Also, you can try to debug-on-entry org-element-parse-buffer and check where exactly the hang happens by stepping through the debugger. Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Wed, Nov 17, 2021 at 7:03 AM Ihor Radchenko wrote: > > Aaron Jensen writes: > > > Here's another on c47b535bb: > > > > https://gist.github.com/aaronjensen/348d879f79099c0d9b660bad199f25af > > > > I don't recall what I was doing at the time, it was during a meeting. > > I do not see anything meaningful in the backtrace, except that "Current > command: nil" is probably related to some third-party package. If there > is nothing obvious in your config that may be responsible, you can set > org-element--cache-diagnostics-modifications to nil to suppress the > warning. > > Best, > Ihor Ok, I've disabled it for now. I'm seeing another issue and I don't know if it is related. When I save an org-capture my emacs spins for a long time. I C-g w/ toggle-debug-on-quit and got this: Debugger entered--Lisp error: (quit) org-element--parse-generic-emphasis("/" italic) org-element-italic-parser() org-element--object-lex((bold citation code entity export-snippet footnote-reference inline-babel-call inline-src-block italic line-break latex-fragment link macro radio-target statistics-cookie strike-through subscript superscript target timestamp underline verbatim)) org-element--parse-objects(532 1586811 (paragraph (:begin 532 :end 1586811 :contents-begin 532 :contents-end 1586811 :post-blank 0 :post-affiliated 532 :mode nil :granularity nil :parent nil)) (bold citation code entity export-snippet footnote-reference inline-babel-call inline-src-block italic line-break latex-fragment link macro radio-target statistics-cookie strike-through subscript superscript target timestamp underline verbatim)) org-element--parse-elements(508 1586811 planning nil nil nil (section (:begin 508 :end 1586812 :contents-begin 508 :contents-end 1586811 :robust-begin 508 :robust-end 1586809 :post-blank 1 :post-affiliated 508 :mode section :granularity nil :parent nil))) org-element--parse-elements(508 1586811 section nil nil nil (headline (:raw-value "Report org" :begin 490 :end 1586812 :pre-blank 0 :contents-begin 508 :contents-end 1586811 :robust-begin 510 :robust-end 1586809 :level 1 :priority nil :tags nil :todo-keyword #("TODO" 0 4 (wrap-prefix #("* " 0 2 (face org-indent)) line-prefix "" fontified nil)) :todo-type todo :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 490 :title (#("Report org" 0 10 (:parent #7))) :mode nil :granularity nil :parent nil))) org-element--parse-elements(1 1587283 first-section nil nil nil (org-data (:begin 1 :contents-begin 1 :contents-end 1587283 :end 1587283 :robust-begin 67 :robust-end 1587281 :post-blank 0 :post-affiliated 1 :path "/Users/path..." :mode org-data :ID "AB94746D-500B-49F3-9E4F-067D2B7E3976" :CATEGORY "Refile"))) org-element-parse-buffer() org-roam-db-update-file() org-roam-db-autosync--try-update-on-save-h() run-hooks(after-save-hook) basic-save-buffer(nil) save-buffer() org-capture-finalize(nil) funcall-interactively(org-capture-finalize nil) command-execute(org-capture-finalize)
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On 17/11/2021 13:05, Aaron Jensen wrote: I don't recall what I was doing at the time, it was during a meeting. You press C-h l that calls view-lossage and look into help buffer later. This command helped me to realize what was the cause of https://list.orgmode.org/smre9o$hn1$1...@ciao.gmane.io/
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > Here's another on c47b535bb: > > https://gist.github.com/aaronjensen/348d879f79099c0d9b660bad199f25af > > I don't recall what I was doing at the time, it was during a meeting. I do not see anything meaningful in the backtrace, except that "Current command: nil" is probably related to some third-party package. If there is nothing obvious in your config that may be responsible, you can set org-element--cache-diagnostics-modifications to nil to suppress the warning. Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Sun, Nov 14, 2021 at 3:10 PM Aaron Jensen wrote: > > On Sun, Nov 14, 2021 at 3:00 AM Ihor Radchenko wrote: > > > > Aaron Jensen writes: > > > > > Another one: > > > https://gist.github.com/aaronjensen/5114997373008e18a6473f513f5d5da8 > > > > > > I don't have the details of what I was doing in the time, sorry. > > > > > > I'm on: ded97b767 * main origin/main org-element.el: Fix regression > > > from d3836c1a1 > > > > I have done some related fixes recently. An update might help. Also, do > > you happen to use polymode? If so, the warning may be related to > > https://github.com/polymode/poly-org/issues/33 > > I've updated. I do not use polymode. Here's another on c47b535bb: https://gist.github.com/aaronjensen/348d879f79099c0d9b660bad199f25af I don't recall what I was doing at the time, it was during a meeting.
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Sun, Nov 14, 2021 at 3:00 AM Ihor Radchenko wrote: > > Aaron Jensen writes: > > > Another one: > > https://gist.github.com/aaronjensen/5114997373008e18a6473f513f5d5da8 > > > > I don't have the details of what I was doing in the time, sorry. > > > > I'm on: ded97b767 * main origin/main org-element.el: Fix regression > > from d3836c1a1 > > I have done some related fixes recently. An update might help. Also, do > you happen to use polymode? If so, the warning may be related to > https://github.com/polymode/poly-org/issues/33 I've updated. I do not use polymode. Thanks, Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > Another one: > https://gist.github.com/aaronjensen/5114997373008e18a6473f513f5d5da8 > > I don't have the details of what I was doing in the time, sorry. > > I'm on: ded97b767 * main origin/main org-element.el: Fix regression > from d3836c1a1 I have done some related fixes recently. An update might help. Also, do you happen to use polymode? If so, the warning may be related to https://github.com/polymode/poly-org/issues/33 Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Another one: https://gist.github.com/aaronjensen/5114997373008e18a6473f513f5d5da8 I don't have the details of what I was doing in the time, sorry. I'm on: ded97b767 * main origin/main org-element.el: Fix regression from d3836c1a1 Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Thu, Nov 4, 2021 at 10:11 AM Ihor Radchenko wrote: > > Aaron Jensen writes: > > > I got a warning when I did an org-agenda-todo to mark something as done. > > > > https://gist.github.com/aaronjensen/163913c0937376c9699eaa71eaa0959a > > If I read the backtrace correctly, you did not update to the latest > main. Can you check if your Org is more recent than dc0c60f123? Ah, it was not, I'm sorry. I have updated. I'll report back next time I see something. Thanks, Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > I got a warning when I did an org-agenda-todo to mark something as done. > > https://gist.github.com/aaronjensen/163913c0937376c9699eaa71eaa0959a If I read the backtrace correctly, you did not update to the latest main. Can you check if your Org is more recent than dc0c60f123? Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Wed, Nov 3, 2021 at 10:30 AM Aaron Jensen wrote: > > On Wed, Nov 3, 2021 at 7:43 AM Ihor Radchenko wrote: > > > > Aaron Jensen 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(#) > > > apply(org-element--cache-sync #) > > > timer-event-handler([t 0 0 59 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))
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Wed, Nov 3, 2021 at 7:43 AM Ihor Radchenko wrote: > > Aaron Jensen 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(#) > > apply(org-element--cache-sync #) > > timer-event-handler([t 0 0 59 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.
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen 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(#) > apply(org-element--cache-sync #) > timer-event-handler([t 0 0 59 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
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > Here is another that just happened: > https://gist.github.com/aaronjensen/5294a64f243a306b58062113b9306bab > > It's scrubbed of all string data, hopefully not over-scrubbed for you. Thanks! It was really helpful. The problem was org-roam calling org-element-parse-buffer frequently. org-element-parse-buffer had a bug causing element cache corruption. Sometimes, :parent property of cached elements was set to uncached elements - something cache code does not expect. Fixed on main now. Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Here is another that just happened: https://gist.github.com/aaronjensen/5294a64f243a306b58062113b9306bab It's scrubbed of all string data, hopefully not over-scrubbed for you. Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Mon, Nov 1, 2021 at 8:48 AM Ihor Radchenko wrote: > > Aaron Jensen writes: > > > On Sat, Oct 30, 2021 at 11:16 PM Aaron Jensen wrote: > >> > >> Done, I'll report back. > > > > Another one, no trace: > > > > Warning (emacs): Emacs reader failed to read data for # > config.org>:org-element--cache. The error was: "Invalid read syntax: > > \"#\", 1, 4670" Disable showing Disable logging > > Thanks! I have seen this one. Now can confirm that it is not just on my > system. This warning indicates a likely bug in Emacs read/write. I > disabled this warning on latest main to not irritate users. > > Best, > Ihor 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. Warning (emacs): org-element--cache: Warning(20211101-journal): Unregistered buffer modifications detected. Resetting. If this warning appears regularly, please report it to Org mode mailing list (M-x org-submit-bug-report). The buffer is: 20211101-journal Current command: nil Backtrace: " backtrace-to-string(nil) org-element--cache-sync(#) apply(org-element--cache-sync #) timer-event-handler([t 0 0 59 nil org-element--cache-sync (#) idle 99 nil]) " Backtrace: org-element-cache diagnostics(20211101-journal): Nothing to remove. No elements in cache after 361. Terminating. org-element-cache diagnostics(20211101-journal): Found non-robust change invalidating org-data. Re-parsing: "(org-data (:begin 1 :contents-begin 1 :contents-end 360 :end 360 :robust-begin 3 :robust-end 358 :post-blank 0 :post-affiliated 1 :path \"/path\" :mode org-data :CATEGORY \"20211101-journal\" :parent nil :cached t :org-element--cache-sync-key (4 . -1)))" org-element-cache diagnostics(20211101-journal): Adding new phase 0 request org-element-cache diagnostics(20211101-journal): Submitting new synchronization request for [360..361]𝝙-1 org-element-cache diagnostics(20211101-journal): save-buffer is about to modify text: warning nil org-element-cache diagnostics(20211101-journal): After change org-element-cache diagnostics(20211101-journal): save-buffer is about to modify text: warning nil org-element-cache diagnostics(20211101-journal): Nothing to remove. No elements in cache after 364. Terminating. org-element-cache diagnostics(20211101-journal): Found non-robust change invalidating org-data. Re-parsing: "(org-data (:begin 1 :contents-begin 1 :contents-end 360 :end 361 :robust-begin 3 :robust-end 358 :post-blank 1 :post-affiliated 1 :path \"/path\" :mode org-data :CATEGORY \"20211101-journal\" :parent nil :cached t :org-element--cache-sync-key (4 . -1)))" org-element-cache diagnostics(20211101-journal): Adding new phase 0 request org-element-cache diagnostics(20211101-journal): Submitting new synchronization request for [361..364]𝝙-3 org-element-cache diagnostics(20211101-journal): evil-org-delete is about to modify text: warning 2 org-element-cache diagnostics(20211101-journal): After change org-element-cache diagnostics(20211101-journal): evil-org-delete is about to modify text: warning 2 org-element-cache diagnostics(20211101-journal): Nothing to remove. No elements in cache after 365. Terminating. org-element-cache diagnostics(20211101-journal): Found non-robust change invalidating org-data. Re-parsing: "(org-data (:begin 1 :contents-begin 1 :contents-end 364 :end 364 :robust-begin 3 :robust-end 362 :post-blank 0 :post-affiliated 1 :path \"/path\" :mode org-data :CATEGORY \"20211101-journal\" :parent nil :cached t :org-element--cache-sync-key (4 . -1)))" org-element-cache diagnostics(20211101-journal): Adding new phase 0 request org-element-cache diagnostics(20211101-journal): Submitting new synchronization request for [364..365]𝝙-1 org-element-cache diagnostics(20211101-journal): orgonomic-delete-backward-char is about to modify text: warning 2 org-element-cache diagnostics(20211101-journal): After change org-element-cache diagnostics(20211101-journal): orgonomic-delete-backward-char is about to modify text: warning 2 org-element-cache diagnostics(20211101-journal): Nothing to remove. No elements in cache after 366. Terminating. org-element-cache diagnostics(20211101-journal): Found non-robust change invalidating org-data. Re-parsing: "(org-data (:begin 1 :contents-begin 1 :contents-end 365 :end 365 :robust-begin 3 :robust-end 363 :post-blank 0 :post-affiliated 1 :path \"/path\" :mode org-data :CATEGORY \"20211101-journal\" :parent nil :cached t :org-element--cache-sync-key (4 . -1)))" org-element-cache diagnostics(20211101-journal): Adding new phase 0 request org-element-cache diagnostics(20211101-journal): Submitting new synchronization request for [365..366]𝝙-1 org-element-cache diagnostics(20211101-journal): orgonomic-delete-backward-char is about to modify text: warning 2 org-element-cache diagnostics(20211101-journal): After change org-element-cache diagnostics(20211101-journal): or
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > On Sat, Oct 30, 2021 at 11:16 PM Aaron Jensen wrote: >> >> Done, I'll report back. > > Another one, no trace: > > Warning (emacs): Emacs reader failed to read data for # config.org>:org-element--cache. The error was: "Invalid read syntax: > \"#\", 1, 4670" Disable showing Disable logging Thanks! I have seen this one. Now can confirm that it is not just on my system. This warning indicates a likely bug in Emacs read/write. I disabled this warning on latest main to not irritate users. Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Sat, Oct 30, 2021 at 11:16 PM Aaron Jensen wrote: > > Done, I'll report back. Another one, no trace: Warning (emacs): Emacs reader failed to read data for #:org-element--cache. The error was: "Invalid read syntax: \"#\", 1, 4670" Disable showing Disable logging
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Sat, Oct 30, 2021 at 10:46 PM Ihor Radchenko wrote: > > Aaron Jensen writes: > > >> Do you always see "Current command: nil"? If you do, do you have any > >> minor modes that change text in Org buffers? > > > > I don't know, but I'll keep an eye out for the next time it happens. > > If possible, can you also upgrade to latest main? I just pushed a patch > providing additional backtrace to the warning. Hopefully, it can reveal > more details. Will do > > And this to change the behavior of org-indent: > > > > (aj-defadvice aj--org-indent--compute-prefixes-hanging-bullets () > > :override #'org-indent--compute-prefixes > > "Compute prefix strings with hanging header bullets." > > ... > > The was a problem related to org-indent recently [1]. If your Org is > older than b135b8c7, there is a small chance that the warning might be > fixed after update. > > [1] https://list.orgmode.org/878ryev6q2.fsf@localhost/T/#t It wasn't when I just checked, but I updated packages today so it's possible that I was behind on this. I'll let you know if I see it again. The second error I reported was on the latest main. > > As for minor modes, yes: > > > > https://github.com/awth13/org-appear > > ... > > And prettify-symbols-mode: > > I also use org-appear and prettify-symbols-mode. Hopefully not an issue. > > > https://github.com/integral-dw/org-superstar-mode > > Not sure here. It would be helpful if you try to disable > org-superstar-mode and see if it helps, I'll leave it on for a bit longer to see what still repros. If it happens again, I'll try disabling it. > > Warning (emacs): org-element--cache: Added org-data parent to > > non-headline element > > This is a bad one. I was really hoping that I fixed it. Can you set > org-element--cache-self-verify to 'backtrace before loading Emacs and > post the full backtrace if you see this warning again? Done, I'll report back. Thanks, Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > I just got this warning: > > Warning (emacs): org-element--cache: Added org-data parent to > non-headline element This is a bad one. I was really hoping that I fixed it. Can you set org-element--cache-self-verify to 'backtrace before loading Emacs and post the full backtrace if you see this warning again? Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: >> Do you always see "Current command: nil"? If you do, do you have any >> minor modes that change text in Org buffers? > > I don't know, but I'll keep an eye out for the next time it happens. If possible, can you also upgrade to latest main? I just pushed a patch providing additional backtrace to the warning. Hopefully, it can reveal more details. > And this to change the behavior of org-indent: > > (aj-defadvice aj--org-indent--compute-prefixes-hanging-bullets () > :override #'org-indent--compute-prefixes > "Compute prefix strings with hanging header bullets." > ... The was a problem related to org-indent recently [1]. If your Org is older than b135b8c7, there is a small chance that the warning might be fixed after update. [1] https://list.orgmode.org/878ryev6q2.fsf@localhost/T/#t > As for minor modes, yes: > > https://github.com/awth13/org-appear > ... > And prettify-symbols-mode: I also use org-appear and prettify-symbols-mode. Hopefully not an issue. > https://github.com/integral-dw/org-superstar-mode Not sure here. It would be helpful if you try to disable org-superstar-mode and see if it helps, > I think that's it (and yes, that's a lot, heh). That's not a lot ;) Best, Ihor
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Sat, Oct 30, 2021 at 12:45 PM Aaron Jensen wrote: > > On Sat, Oct 30, 2021 at 11:37 AM Ihor Radchenko wrote: > > > > Aaron Jensen writes: > > > > > I don't have a consistent repro, but I am seeing this error often. At > > > different times it is in different files and lists different nodes. > > > > Thanks for reporting! > > > > > Warning (emacs): 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). > > > The buffer is: 20211025-journal > > > Current command: nil Disable showing Disable logging > > > > Do you always see "Current command: nil"? If you do, do you have any > > minor modes that change text in Org buffers? I just got this warning: Warning (emacs): org-element--cache: Added org-data parent to non-headline element: (item (:bullet "- " :begin 1935 :end 1982 :contents-begin 1937 :contents-end 1982 :checkbox nil :counter nil :structure ((1935 0 "- " nil nil nil 1982) (1982 0 "- " nil nil nil 2032)) :pre-blank 0 :post-blank 0 :post-affiliated 1935 :tag nil :mode item :granularity element :cached t :parent (plain-list (:type unordered :begin 1935 :end 2032 :contents-begin 1935 :contents-end 2032 :structure ((1935 0 "- " nil nil nil 1982) (1982 0 "- " nil nil nil 2032)) :post-blank 0 :post-affiliated 1935 :mode planning :granularity element :cached nil :parent (section (:begin 1935 :end 2032 :contents-begin 1935 :contents-end 2032 :robust-begin 1935 :robust-end 2030 :post-blank 0 :post-affiliated 1935 :mode section :granularity element :cached nil :parent (headline (:raw-value "[2021-10-15 Fri]" :begin 1915 :end 2032 :pre-blank 1 :contents-begin 1935 :contents-end 2032 :robust-begin 1937 :robust-end 2030 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1915 :title "[2021-10-15 Fri]" :mode nil :granularity headline :cached nil :parent (org-data (:begin 1 :contents-begin 1 :contents-end 2030 :end 2030 :robust-begin 67 :robust-end 2028 :post-blank 0 :post-affiliated 1 :path "" :mode org-data :ID "09182EC8-8E37-4ABA-8E20-768D9A4CD34B" :CATEGORY "" :granularity headline) nil) :org-element--cache-sync-key (4 . 1913))) :org-element--cache-sync-key (4 . 1932))) :org-element--cache-sync-key (4 . 1933))) :org-element--cache-sync-key (4 . 1934))) Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
On Sat, Oct 30, 2021 at 11:37 AM Ihor Radchenko wrote: > > Aaron Jensen writes: > > > I don't have a consistent repro, but I am seeing this error often. At > > different times it is in different files and lists different nodes. > > Thanks for reporting! > > > Warning (emacs): 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). > > The buffer is: 20211025-journal > > Current command: nil Disable showing Disable logging > > Do you always see "Current command: nil"? If you do, do you have any > minor modes that change text in Org buffers? I don't know, but I'll keep an eye out for the next time it happens. As for minor modes, yes: https://github.com/awth13/org-appear https://github.com/integral-dw/org-superstar-mode And prettify-symbols-mode: (push '("[ ]" . "☐") prettify-symbols-alist) (push '("[X]" . "☑") prettify-symbols-alist) (push '("[-]" . "❍") prettify-symbols-alist) (prettify-symbols-mode) And this to change the behavior of org-indent: (aj-defadvice aj--org-indent--compute-prefixes-hanging-bullets () :override #'org-indent--compute-prefixes "Compute prefix strings with hanging header bullets." (setq org-indent--heading-line-prefixes (make-vector org-indent--deepest-level nil)) (setq org-indent--inlinetask-line-prefixes (make-vector org-indent--deepest-level nil)) (setq org-indent--text-line-prefixes (make-vector org-indent--deepest-level nil)) (let* ((indent 2)) (dotimes (n org-indent--deepest-level) (aset org-indent--heading-line-prefixes n (make-string (- indent 2) ?\s)) (aset org-indent--inlinetask-line-prefixes n (make-string indent ?\s)) (aset org-indent--text-line-prefixes n (make-string indent ?\s) I think that's it (and yes, that's a lot, heh). Thanks, Aaron
Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Aaron Jensen writes: > I don't have a consistent repro, but I am seeing this error often. At > different times it is in different files and lists different nodes. Thanks for reporting! > Warning (emacs): 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). > The buffer is: 20211025-journal > Current command: nil Disable showing Disable logging Do you always see "Current command: nil"? If you do, do you have any minor modes that change text in Org buffers? Best, Ihor
[BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. I don't have a consistent repro, but I am seeing this error often. At different times it is in different files and lists different nodes. Warning (emacs): 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). The buffer is: 20211025-journal Current command: nil Disable showing Disable logging Emacs : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2021-10-29 Package: Org mode version 9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/) current state: == (setq org-roam-db-location "/Users/myuser/.emacs.d/var/org-roam.db" org-mac-grab-devonthink-app-p nil org-link-elisp-confirm-function 'yes-or-no-p org-directory "xxx" 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-mode-hook '(evil-motion-state) org-agenda-custom-commands '((" " "Agenda" ((agenda "" ((org-agenda-span 'day))) (tags "refile" ((org-agenda-overriding-header "Tasks to Refile") (org-tags-match-list-sublevels nil)) ) (tags-todo "-refile/!" ((org-agenda-overriding-header "Tasks") (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline 'scheduled) ) ) ) (tags "-refile/" ((org-agenda-overriding-header "Tasks to Archive") (org-agenda-skip-function 'aj/skip-non-archivable-tasks) (org-tags-match-list-sublevels nil)) ) ) ) ) org-agenda-skip-scheduled-if-done t org-agenda-files '("") org-journal-dir "" org-journal-date-format "%a, %-d %b %Y" org-capture-templates '(... ) org-persist-after-read-hook '(org-element--cache-persist-after-read) org-refile-targets '((nil :maxlevel . 9) (aj/refile-target-files :maxlevel . 3)) org-export-before-parsing-hook '(org-attach-expand-links) org-default-notes-file "notes.org" 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-open-id-with-org-roam-db-h org-roam-db-autosync--setup-update-on-save-h) org-refile-use-outline-path 'file org-publish-timestamp-directory "/Users/myuser/.emacs.d/var/org/timestamps/" org-archive-hook '(org-attach-archive-delete-maybe) 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-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mac-grab-Outlook-app-p nil org-catch-invisible-edits 'show org-mac-grab-Addressbook-app-p nil org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(aj--org-download org-tempo-setup aj--add-recalc-table-hook evil-org-mode aj--org-line-spacing #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-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 aj/org-prettify-symbols org-superstar-mode org-indent-mode orgonomic-mode org-appear-mode org-eldoc-load electric-pair-local-mode aj--disable-line-numbers flyspell-mode) org-babel-load-languages '((shell . t)) org-src-window-setup 'current-window org-id-locations-file "/Users/myuser/.emac