From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: moving window handling into lisp Date: Mon, 27 Jul 2009 16:35:38 +0200 Message-ID: <4A6DBB3A.90001@gmx.at> References: <4A6DAD94.8040006@gmx.at> <4A6DAF71.6070002@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248712046 27853 80.91.229.12 (27 Jul 2009 16:27:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 16:27:26 +0000 (UTC) Cc: Miles Bader , emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 18:27:18 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVT2i-00039U-Ed for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 18:27:16 +0200 Original-Received: from localhost ([127.0.0.1]:58240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVT2h-0000Nu-Qa for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 12:27:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVRIt-00034L-FU for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:35:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVRIm-0002zs-89 for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:35:50 -0400 Original-Received: from [199.232.76.173] (port=47458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVRIl-0002zW-MD for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:35:43 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:41923) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MVRIk-0004hs-RU for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:35:43 -0400 Original-Received: (qmail invoked by alias); 27 Jul 2009 14:35:41 -0000 Original-Received: from 62-47-46-195.adsl.highway.telekom.at (EHLO [62.47.46.195]) [62.47.46.195] by mail.gmx.net (mp024) with SMTP; 27 Jul 2009 16:35:41 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/jaDBfAFbjyOn01QZ5cieweydmNUy4kH3jRw8piU 67zF3wegrVB563 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.73 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113221 Archived-At: > I see. Yes, it would be nice to avoid that. But is that really that > difficult? I mean you calculate the sizes of all direct children and > then you create them. What is the problem with that? (Sorry, I just > don't understand.) It's not transparent, that is, it depends on the order how things are done. You can set window attributes like `window-size-fixed' only after splitting. You have to bind `window-min-height' and `window-min-width' around the splitting code. `set-window-configuration' is much simpler in this regard. > In winsav.el the problem is that you can't be sure what size the > windows get so you have to iterate and do some strange things to get > back the original (relative) sizes). But is not that more easy to do > if you can create the sizes and adjust them before creating the child > windows? I suppose we agree that it's much simpler when we can set the window sizes directly (and apply any frame resizing afterwards). martin