From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Reachable killed buffers Date: Fri, 14 Sep 2012 15:38:22 +0200 Message-ID: <5053334E.2070907@gmx.at> References: <504848D0.4020908@yandex.ru> <5048D826.3040103@yandex.ru> <5049C400.8070400@gmx.at> <504DB6DD.9030002@yandex.ru> <504E042E.5040100@yandex.ru> <504ECB49.4050509@yandex.ru> <50504349.7090603@gmx.at> <50509262.1070601@cs.ucla.edu> <50509533.9000502@yandex.ru> <50509698.5060108@cs.ucla.edu> <505098FB.1020801@gmx.at> <5050B151.2020304@yandex.ru> <5050CC93.3010506@cs.ucla.edu> <5051645B.9070308@cs.ucla.edu> <50520EA7.7060707@gmx.at> <505213DF.8050300@cs.ucla.edu> <50521839.9060605@gmx.at> <50531EB3.5030604@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347629926 10358 80.91.229.3 (14 Sep 2012 13:38:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 13:38:46 +0000 (UTC) Cc: Paul Eggert , Stefan Monnier , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 15:38:49 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCW6a-0001fi-8e for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2012 15:38:48 +0200 Original-Received: from localhost ([::1]:36596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW6W-0004SS-Ey for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2012 09:38:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW6O-0004Qd-JC for emacs-devel@gnu.org; Fri, 14 Sep 2012 09:38:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCW6I-0001KT-5V for emacs-devel@gnu.org; Fri, 14 Sep 2012 09:38:36 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:46614) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TCW6H-0001Ip-Rz for emacs-devel@gnu.org; Fri, 14 Sep 2012 09:38:30 -0400 Original-Received: (qmail invoked by alias); 14 Sep 2012 13:38:28 -0000 Original-Received: from 62-47-46-61.adsl.highway.telekom.at (EHLO [62.47.46.61]) [62.47.46.61] by mail.gmx.net (mp019) with SMTP; 14 Sep 2012 15:38:28 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+NE4hAQyKNm1kJnurxpYWH13qQi16Mtl4U8kv6z3 p6cEaEq3AfKn32 In-Reply-To: <50531EB3.5030604@yandex.ru> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153297 Archived-At: > Since our discussion shows that there is no solid and bullet-proof > solution for killed buffers problem (IMHO), I would like to propose > an alternate (less effective, but safe) solution: The current solution is safe. > when the window > dies, it's prev_buffers and next_buffers are set to nil, but both > buffer lists are saved in struct saved_window just for the sake of > possible resurrection. The same window can appear in different saved_window structures simultaneously. Would each of them store these values? > Martin said that the most of window-configuration > objects are created with 'save-window-excursion' and so they're > short-lived objects which tends to not survive next GC. So, if > deleted window isn't recorded in window-configuration object or > such an object dies quickly, we're lucky; otherwise, the only thing > we can do is to hope that recorded window will be resurrected and > Lisp code from window.el will take care about the contents of > it's buffer lists. I can't see any problem with the present solution. So I'd rather leave it alone. martin