]> git.eshelyaron.com Git - emacs.git/commit
Fix overlays order in Flyspell (bug#58970)
authorJuri Linkov <juri@linkov.net>
Thu, 3 Nov 2022 17:35:45 +0000 (19:35 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 3 Nov 2022 17:35:45 +0000 (19:35 +0200)
commit651bf0a99923e5eff279e9f9649aaed3d2f05c71
tree525c37cb3d4d356787740db8f3217563648640e4
parenta66280162f907a09be23922cc80ac352392adac6
Fix overlays order in Flyspell (bug#58970)

Flyspell relies on the sorting order of overlays from 'overlays-in'
that returned the overlays sorted by decreased 'overlay-start'.
But after the recent merge of the noverlay branch, the order was reversed.
So need to change the order back to the expected by Flyspell.

* lisp/textmodes/flyspell.el (flyspell-auto-correct-previous-word):
Sort overlays returned from 'overlays-in' descending by 'overlay-start'.
lisp/textmodes/flyspell.el