Skip to content

Commit

Permalink
org-element-cache: Report buffer size for unregistered modifications
Browse files Browse the repository at this point in the history
* lisp/org-element.el (org-element--cache-sync): Provide the details
on the expected and actual values of buffer size.
  • Loading branch information
yantar92 committed Sep 26, 2022
1 parent ebbc2ff commit ad52345
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/org-element.el
Original file line number Diff line number Diff line change
Expand Up @@ -5958,9 +5958,11 @@ actually submitted."
(if (/= org-element--cache-last-buffer-size (buffer-size))
(progn
(org-element--cache-warn
"Unregistered buffer modifications detected. Resetting.
"Unregistered buffer modifications detected (%S != %S). 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: %s\n Current command: %S\n Backtrace:\n%S"
org-element--cache-last-buffer-size
(buffer-size)
(buffer-name (current-buffer))
this-command
(when (and (fboundp 'backtrace-get-frames)
Expand Down

0 comments on commit ad52345

Please sign in to comment.