emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] lisp/bookmark.el: make bookmark-fontify nil by default


From: Lars Ingebrigtsen
Subject: Re: [PATCH] lisp/bookmark.el: make bookmark-fontify nil by default
Date: Tue, 14 Sep 2021 13:54:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> So the problem seems to be that a `revert-buffer' doesn't keep overlays
>> where they were, I guess?  (Or remove the overlays, at least.)
>
> Are they removed, or do they move/evaporate because their markers
> move?

These overlays are zero-length, so they don't evaporate.  But...
perhaps they shouldn't be, and be marked with `evaporate'?  That should
make them go away in this case, at least.  (I haven't really worked much
with fringe markers before...)

>> Do we have some machinery to handle overlays like this, or conventions
>> about what to do with overlays when doing a `revert-buffer' actions?
>
> AFAIK, we already try to preserve the buffer markers, if possible.
> And revert-buffer-with-fine-grain tries harder.  So if the issue is
> that the overlays' markers moved, we already try.

But perhaps this doesn't work with zero-length overlays?  (Those are
handled specially in many circumstances.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]