[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overlay insertion types, markers, etc.
From: |
Stefan Monnier |
Subject: |
Re: Overlay insertion types, markers, etc. |
Date: |
Sun, 17 Nov 2019 10:55:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> 4. Can you retrieve the markers that are "used by"
> an overlay, i.e., as markers?
No, you can't, and you shouldn't be able to: it's an implementation
detail, that may change in the future (IIUC the `noverlays` branch
indeed makes this change as part of a rewrite which tries to eliminate
some algorithmic complexity problems in the overlay code).
Also it would introduce all kinds of extra work:
- when an overlay is moved, the redisplay code is told about it, whereas
no redisplay is normally caused by moving a marker, so we'd need to
figure out what to do when an "overlay-owned" marker is moved.
- the user could now move the start-marker of an overlay to another buffer
than the end-marker
- the user could now move the end-marker of an overlay before the
start-marker (this can already happen but only in very specific
cases, so we'd have to handle it in more cases).
- ...
Stefan
- Overlay insertion types, markers, etc., Drew Adams, 2019/11/11
- RE: Overlay insertion types, markers, etc., Drew Adams, 2019/11/13
- Re: Overlay insertion types, markers, etc., Eli Zaretskii, 2019/11/15
- RE: Overlay insertion types, markers, etc., Drew Adams, 2019/11/15
- Re: Overlay insertion types, markers, etc., Eli Zaretskii, 2019/11/15
- RE: Overlay insertion types, markers, etc., Drew Adams, 2019/11/15
- Re: Overlay insertion types, markers, etc., Richard Stallman, 2019/11/16
- RE: Overlay insertion types, markers, etc., Drew Adams, 2019/11/16
- Re: Overlay insertion types, markers, etc.,
Stefan Monnier <=
- RE: Overlay insertion types, markers, etc., Drew Adams, 2019/11/17
- Re: Overlay insertion types, markers, etc., Richard Stallman, 2019/11/20
- Re: Overlay insertion types, markers, etc., Eli Zaretskii, 2019/11/20
- RE: Overlay insertion types, markers, etc., Drew Adams, 2019/11/20