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: Tue, 16 Jan 2007 18:59:52 +0100 Message-ID: <45AD1298.2050008@gmail.com> 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> 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 1168970417 12936 80.91.229.12 (16 Jan 2007 18:00:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 18:00:17 +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 19:00:14 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 1H6sbQ-0001zN-DX for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 19:00:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6sbQ-0008BZ-Jq for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 13:00:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6sbB-00084I-Qu for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 12:59:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6sb9-00080Y-4D for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 12:59:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6sb9-00080F-0o for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 12:59:51 -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 1H6sb8-0001xh-D1 for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 12:59:50 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:61401 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H6sb6-00016g-3e; Tue, 16 Jan 2007 18:59:48 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: martin rudalics In-Reply-To: <45ACDFEE.8020608@gmx.at> X-Antivirus: avast! (VPS 0703-1, 2007-01-15), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H6sb6-00016g-3e. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H6sb6-00016g-3e e28e2cdb485267109b99bd3070224403 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:40367 Archived-At: martin rudalics wrote: > Why not? The primary purpose of the 'window property is to make the > overlay appear in one and only one window. Copying the window tree > somewhere else should move the overlay to a new window iff the old > window were deleted. Perfectly valid. Copying again from the saved > configuration would not see the overlay any more because it now names > another window. Valid too. > > If you really see a need to copy overlays make it optional. OK, I have done that. > In any case > there's no need to scan the entire `buffer-list' for overlays. Any > buffer involved must have been displayed by the old window-tree and must > be displayed by the new window-tree. I can not see that a buffer that the buffer must have been displayed by the old window-tree. The 'window property might just be there to be shown later when the buffer is displayed in that special window. > Finally, if you really want to separate saving from restoring you have > to decide what to do with buffers that have been changed (window-point > or window-start are no longer valid) or deleted in the meantime. Good thought, thanks. I have added that. > > Why should I only investigate those buffers? > > Because people may have hundred buffers or more, many of them with > overlays. Most overlays don't have a window property. OK, I have made it an option. By default I only investigate those windows that you and Juanma has suggested.