[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return val
From: |
Stefan Monnier |
Subject: |
bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value |
Date: |
Thu, 10 Nov 2022 15:51:04 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> 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).
AFAICT it sorts first based on priority and only for equal-priority
overlays does it use the overlay's start.
Is there any specific reason for this particular ordering?
> 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.
I was thinking of doing like we did for `overlays-at`, i.e. leave the
default to "unsorted" but add a `sorted` argument. This also acts as
a reminder that the default is not sorted.
Stefan
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Ihor Radchenko, 2022/11/05
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Eli Zaretskii, 2022/11/06
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Ihor Radchenko, 2022/11/06
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Stefan Monnier, 2022/11/10
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Dmitry Gutov, 2022/11/10
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value,
Stefan Monnier <=
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Dmitry Gutov, 2022/11/10
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Stefan Monnier, 2022/11/10
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Dmitry Gutov, 2022/11/10
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Stefan Monnier, 2022/11/10
- bug#59067: 29.0.50; Exexpected overlay order in `overlays-in' return value, Eli Zaretskii, 2022/11/11