org-element--cache-sync: Ignore some more silent changes

* lisp/org-element.el (org-element--cache-sync): Add heuristics
skipping silent buffer changes made by quail.el when inserting "S-\"
using computer-russian input method.

Reported in https://list.orgmode.org/smre9o$hn1$1@ciao.gmane.io/
This commit is contained in:
Ihor Radchenko 2021-11-15 08:35:21 +08:00
parent bc3f385c97
commit faf8ce7dee
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 0 deletions

View File

@ -5821,6 +5821,9 @@ updated before current modification are actually submitted."
;; edit.
(/= (buffer-chars-modified-tick)
(buffer-modified-tick))
;; FIXME: Similar for "S-\" in russian-computer input.
(not (= (buffer-chars-modified-tick)
(- (buffer-modified-tick) 6)))
;; FIXME: Another heuristics noticed by observation.
;; `replace-match' in `org-toggle-heading' in Emacs <28
;; makes safe silent changes when first letter in the