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: Sun, 14 Jan 2007 12:26:58 +0100 Message-ID: <45AA1382.2030506@gmx.at> References: <45A8B034.8020301@gmx.at> <45A9F965.4080007@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 1168775195 14998 80.91.229.12 (14 Jan 2007 11:46:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Jan 2007 11:46:35 +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:46:32 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 1H63oa-0000NS-1r for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2007 12:46:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H63oa-0004xs-40 for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2007 06:46:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H63oK-0004uS-LE for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:46:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H63oJ-0004s5-Ja for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:46:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H63oJ-0004rs-Bh for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:46:03 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1H63WD-0000cU-Dj for help-gnu-emacs@gnu.org; Sun, 14 Jan 2007 06:27:22 -0500 Original-Received: (qmail invoked by alias); 14 Jan 2007 11:26:45 -0000 Original-Received: from N846P011.adsl.highway.telekom.at (EHLO [62.47.49.171]) [62.47.49.171] by mail.gmx.net (mp046) with SMTP; 14 Jan 2007 12:26:45 +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: <45A9F965.4080007@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:40292 Archived-At: > 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. (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.