From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Why deleting overlays before kill-buffer? Date: Fri, 4 Jun 2010 13:25:11 +0200 Message-ID: References: <201006041228.01635.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1275650762 25417 80.91.229.12 (4 Jun 2010 11:26:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 11:26:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 04 13:25:51 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OKV26-00044R-0H for ged-emacs-devel@m.gmane.org; Fri, 04 Jun 2010 13:25:50 +0200 Original-Received: from localhost ([127.0.0.1]:58198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKV25-0000P3-Ah for ged-emacs-devel@m.gmane.org; Fri, 04 Jun 2010 07:25:49 -0400 Original-Received: from [140.186.70.92] (port=39028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKV1x-0000Ox-Kq for emacs-devel@gnu.org; Fri, 04 Jun 2010 07:25:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKV1v-0002f0-7q for emacs-devel@gnu.org; Fri, 04 Jun 2010 07:25:41 -0400 Original-Received: from mail-yw0-f187.google.com ([209.85.211.187]:54280) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKV1v-0002ek-3t for emacs-devel@gnu.org; Fri, 04 Jun 2010 07:25:39 -0400 Original-Received: by ywh17 with SMTP id 17so301547ywh.1 for ; Fri, 04 Jun 2010 04:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=mRQdionK/392fOS6l52zzOYnlanOANafHQItCy75qdE=; b=N6UJNKQMwFvLfIcEXPYKAJt2S2HBL6IpbQyT1UdOfbU1ut1RruIN3MX5JbsmfBGVUa qI8sIQ5ICRHLV0Ryky8KibGq4ZfkqECwga7DczbQwaS+muKB5yiXLpaI3JiPd8iyW3YT Hh6lu+BMEdtk0IoNzPS+/cYzTMEi7Wgle1a0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=tDfK0O+qtmO2pWklLLQ33Br0hsgwGOrtXLbS91tk695v1+ioVhFBoXiE7T5RaAlWZT oZvdpT4CfhWOYp8GXz2/+aubKNdaTLSf1SXENpIgGW0J8BZ/9McbL8/1n9Vv2ZEC68Xr S0cNGKobcOHZRbmd+E8XvV3kArx5P4YP5ew4Y= Original-Received: by 10.101.147.1 with SMTP id z1mr11815139ann.241.1275650731232; Fri, 04 Jun 2010 04:25:31 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Fri, 4 Jun 2010 04:25:11 -0700 (PDT) In-Reply-To: <201006041228.01635.tassilo@member.fsf.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125504 Archived-At: On Fri, Jun 4, 2010 at 12:28 PM, Tassilo Horn 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.