From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: MY window tree! Date: Mon, 15 Jan 2007 17:32:30 +0100 Message-ID: <45ABAC9E.9020607@gmail.com> References: <45A8B034.8020301@gmx.at> <45AAA21C.6090505@gmail.com> <45AAB98F.8060404@gmail.com> <45AB2CDB.1040207@gmx.at> <45AB7C99.6050002@gmail.com> <45AB8B1F.7010408@gmail.com> <45AB92A8.7030300@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168881371 11809 80.91.229.12 (15 Jan 2007 17:16:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2007 17:16:11 +0000 (UTC) Cc: martin rudalics , help-gnu-emacs@gnu.org, michael@cadilhac.name Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 15 18:16:05 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by lo.gmane.org with esmtp (Exim 4.50) id 1H6VJZ-00028Z-J0 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jan 2007 18:08:09 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1H6VJ0-0008VC-Od for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jan 2007 18:07:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6Ulj-0004HE-8b for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jan 2007 11:33:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6UlP-0004EI-LQ for help-gnu-emacs@gnu.org; Mon, 15 Jan 2007 11:32:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6UlN-00049D-GY for help-gnu-emacs@gnu.org; Mon, 15 Jan 2007 11:32:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6UlN-00048c-3X for help-gnu-emacs@gnu.org; Mon, 15 Jan 2007 11:32:49 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H6UlM-0004QQ-Dl for help-gnu-emacs@gnu.org; Mon, 15 Jan 2007 11:32:48 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:61215 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H6UlJ-0002gu-5y; Mon, 15 Jan 2007 17:32:46 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Juanma Barranquero In-Reply-To: X-Antivirus: avast! (VPS 0703-1, 2007-01-15), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H6UlJ-0002gu-5y. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H6UlJ-0002gu-5y c1fa94c5a2d64c7b2c789e364560d0ca X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40312 Archived-At: Juanma Barranquero wrote: > On 1/15/07, Lennart Borgman (gmail) wrote: > >> I have actually changed that to just change the 'window property of the >> overlays. No overlays are normally copied any more. > > Ah, good. > >> If the window object >> that the 'window properties points to is not a valid window any more >> then I just replace that value with a pointer to the new window that >> have replaced the old one. > > I think the right thing to do would be a bit more complicate: > > 1) search every displayed buffer and make a list of all overlays > associated to windows, and which windows are they associated to (one > list for window, I suppose). > 2) do your mumbo-jumbo with windows > 3) determine which window corresponds to every buffer now > 4) process the lists of 1) above and modify only those overlays that > pointed to a non-alive windows W1 that corresponds now to W2. You are right, I have to check more buffers. In fact every buffer, displayed or not. Done. I introduced some bugs when I tried to fix the resizing. Hope I got everything in the right place now.