From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: re-generating a window-configuration by program Date: Sat, 20 Dec 2003 18:05:05 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2719-Sat20Dec2003180504+0200-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1071936537 8060 80.91.224.253 (20 Dec 2003 16:08:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2003 16:08:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 17:08:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AXjew-0007HZ-00 for ; Sat, 20 Dec 2003 17:08:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXkbM-00073c-QV for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Dec 2003 12:09:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AXkb0-00072O-CT for help-gnu-emacs@gnu.org; Sat, 20 Dec 2003 12:08:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AXkaR-0006hs-RX for help-gnu-emacs@gnu.org; Sat, 20 Dec 2003 12:08:52 -0500 Original-Received: from [192.114.186.18] (helo=bilbo.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXkaR-0006g7-62 for help-gnu-emacs@gnu.org; Sat, 20 Dec 2003 12:08:19 -0500 Original-Received: from zaretski ([80.230.149.192]) by bilbo.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id CCA34802; Sat, 20 Dec 2003 18:06:50 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Klaus Berndl on 19 Dec 2003 09:06:55 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15474 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15474 > From: Klaus Berndl > Newsgroups: gnu.emacs.help > Date: 19 Dec 2003 09:06:55 +0100 > > OK, then i want to do the following: > 1. Calling `delete-other-windows' so this frame contains only one window. > 2. Calling an algorithm which goes through the window-config in > `my-own-window-config' and re-generates the original window-layout the > frame had before step 1. This re-generation has to be done by running all > needed calls to split-window-vertically, split-window-horizontally, > enlarge-window, shrink-window. > > Does anybody know such an algorithm which goes through a list of windows and > its edge-coordinates and rebuilds only with this information the specified > window-layout? Any reason why the winner.el package could not help you do what you want?