emacs-devel
[Top][All Lists]
Advanced

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

Re: Why deleting overlays before kill-buffer?


From: Lennart Borgman
Subject: Re: Why deleting overlays before kill-buffer?
Date: Fri, 4 Jun 2010 13:25:11 +0200

On Fri, Jun 4, 2010 at 12:28 PM, Tassilo Horn <address@hidden> wrote:
> On Friday 04 June 2010 11:38:35 Lennart Borgman wrote:
>
> Hi Lennart,
>
>> Is there any reason to delete overlays when kill-buffer is called
>> (like re-builder does)?
>
> In the general case, no overlays are deleted when killing a buffer.
>
> But re-builder adds a cleanup function `reb-kill-buffer' to
> `kill-buffer-hook' to do that, because killing the re-builder buffer
> should remove the overlays it has created in some *other* buffer.

Ah, thanks Tassilo, yes. Of course. I misread the code, it was not
very explicit about the current buffer.



reply via email to

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