|
From: | Dmitry Gutov |
Subject: | bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value |
Date: | Thu, 10 Nov 2022 22:37:01 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 |
Maybe Someoneā¢ should browse through the various calls to `overlays-in` out there to try and see which orderings could be useful.
FWIW, mmm-mode uses overlay sorting based on the value of overlay-start (first come overlays where this value is higher, so basically the more deeply nested ones, if we imagine all overlays to be strictly nested, as is the case with mmm-mode).
It uses a custom sorting function, though (which also takes priority into account), so it shouldn't be affected by the breakage.
You can check it out here, it also seems reasonable as the potential default sort: https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/mmm-region.el?h=externals/mmm-mode#n148
If it's not too expensive to use as default, that is.
[Prev in Thread] | Current Thread | [Next in Thread] |