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: Sun, 14 Jan 2007 12:45:18 +0100 Message-ID: <45AA17CE.9050009@gmail.com> References: <45A8B034.8020301@gmx.at> <45A9F965.4080007@gmail.com> <45AA1382.2030506@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 1168775144 14836 80.91.229.12 (14 Jan 2007 11:45:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Jan 2007 11:45:44 +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 Sun Jan 14 12:45:40 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 1H63ns-0000BS-MT for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2007 12:45:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H63ns-0003x2-HZ for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2007 06:45:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H63nb-0003ws-VD for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:45:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H63na-0003vx-5n for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:45:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H63na-0003vu-27 for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:45:18 -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 1H63nZ-0003c4-HR for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:45:17 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:63507 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H63nW-0006Q7-62; Sun, 14 Jan 2007 12:45:16 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: martin rudalics In-Reply-To: <45AA1382.2030506@gmx.at> X-Antivirus: avast! (VPS 0703-0, 2007-01-13), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H63nW-0006Q7-62. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H63nW-0006Q7-62 0dfca32cde39d782967fc231968f6739 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:40291 Archived-At: martin rudalics wrote: > > I have uploaded a preliminary version of winsav.el to > > > > http://ourcomments.org/Emacs/DL/elisp/test/winsav.el > > > > The problem is that the split-windows below will create *new* windows > rather than "reuse" the old ones. Hence any overlay relationships and > other window-local things get broken by this. Yes, it creates new windows and window local things will get broken. But I do not understand what you mean with "overlay relationships" here. Emacs overlays (if that is what you mean) is tighed to the buffer, not the window. > (dolist (subtree (cdddr saved-tree)) > (add-to-list 'wtree > (cons > (if ver > (split-window-vertically) > (split-window-horizontally)) > subtree) > t) > > IMO there's no way around retaining sequence numbers of windows when > saving and restoring window trees. Hardly possible when done at the > Lisp level. Maybe, but please be more specific about what will be missing when done on the lisp level.