From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: MY window tree! Date: Tue, 16 Jan 2007 22:57:27 +0100 Message-ID: <45AD4A47.7010005@gmx.at> References: <45A8B034.8020301@gmx.at> <45AA17CE.9050009@gmail.com> <45AA6B59.30203@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> <45ABB942.9070407@gmx.at> <45ABC474.3010208@gmail.com> <45ABD474.9040206@gmx.at> <45ABE387.9010306@gmail.com> <45AC03E2.5080109@gmx.at> <45AC18F4.4@gmail.com> <45AC82D1.1050609@gmx.at> <45ACA9C6.40400@gmail.com> <45ACDFEE.8020608@gmx.at> <45AD1298.2050008@gmail.com> <45AD1A40.1040403@gmx.at> <45AD201B.9060009@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168984599 12007 80.91.229.12 (16 Jan 2007 21:56:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 21:56:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, michael@cadilhac.name Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 22:56:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H6wIE-0006xz-My for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 22:56:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6wIF-000290-1I for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 16:56:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6wI1-00028M-FB for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 16:56:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6wHz-00026h-Re for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 16:56:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6wHz-00026Y-Ot for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 16:56:19 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1H6wHz-0007AH-8P for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 16:56:19 -0500 Original-Received: (qmail invoked by alias); 16 Jan 2007 21:56:18 -0000 Original-Received: from N750P019.adsl.highway.telekom.at (EHLO [62.47.37.179]) [62.47.37.179] by mail.gmx.net (mp018) with SMTP; 16 Jan 2007 22:56:18 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: "Lennart Borgman (gmail)" In-Reply-To: <45AD201B.9060009@gmail.com> X-Y-GMX-Trusted: 0 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:40377 Archived-At: > How does this relate to if the buffer was DISPLAYED in the window tree > (ie if window-buffer had that value for any window in the window tree) > at the moment winsav-get-window-tree was called? If I understand correctly you save the identity of such a buffer via (list (window-buffer tree) hence you have an entry for that buffer in the saved window tree. Let's call the buffer B and the window W. Suppose now you eventually want to `winsav-put-window-tree' the tree you saved. When you create the new window, say N, corresponding to W you make it display B (provided B still exists). Next you check all windows in the new window tree. When you check N you know that it (1) displays buffer B, and (2) is a replica of window W. Now you scan B and for any overlay in B referencing W you make the overlay reference N unless W is still alive. All other overlays in B are ignored. Where is the problem? Try to describe a scenario that introduces an inconsistency in my proposal.