[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When are unused overlays garbage collected?
From: |
Stefan Monnier |
Subject: |
Re: When are unused overlays garbage collected? |
Date: |
Thu, 27 May 2021 17:42:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I only wanted to clarify that I don't need to e.g. bother with
> `remove-overlays' before killing the buffer.
Indeed, you doubly don't:
- when you kill a buffer, its overlays are automatically disconnected
from the buffer.
- even if `kill-buffer` were changed not to do that, when the buffer
is not reachable any more, the overlays to which it point would also
become GC'able (unless you keep a reference to them, of course).
Stefan
- Re: When are unused overlays garbage collected?, (continued)
Re: When are unused overlays garbage collected?, Stefan Monnier, 2021/05/24