-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
org-element-cache: Use `buffer-size' to detect silent modifications
* lisp/org-element.el (org-element--cache-diagnostics-modifications): (org-element--cache-silent-modification-check): Remove variables that were introduced to deal with false positives. The new check is more reliable. (org-element--cache-last-buffer-size): New variable storing the last known buffer size registered before/after handled buffer edits. (org-element--cache-sync): Use `buffer-size' instead of `buffer-chars-modified-tick' heuristics. `buffer-size' may not catch all the modifications, but it does not cause numerous false-positives triggered by quail. See Emacs Bug#51766 for the detailed discussion. (org-element--cache-before-change): (org-element-cache-reset): Record buffer size before/after changes. * lisp/org-macs.el (org-unique-local-variables): Do not carry over buffer-local `org-element--cache-last-buffer-size' when cloning buffer.
- Loading branch information
Ihor Radchenko
committed
Jun 29, 2022
1 parent
d788fe9
commit eb796ae
Showing
2 changed files
with
15 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters