From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: moving window handling into lisp Date: Mon, 27 Jul 2009 16:41:15 +0200 Message-ID: References: <4A6DAD94.8040006@gmx.at> <4A6DAF71.6070002@gmx.at> <4A6DBB3A.90001@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248712241 28737 80.91.229.12 (27 Jul 2009 16:30:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 16:30:41 +0000 (UTC) Cc: Miles Bader , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 18:30:34 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 1MVT5t-0004aS-KV for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 18:30:33 +0200 Original-Received: from localhost ([127.0.0.1]:32909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVT5t-0003QZ-28 for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 12:30:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVROD-0007Zl-On for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:41:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVRO9-0007Uh-TU for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:41:21 -0400 Original-Received: from [199.232.76.173] (port=48175 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVRO9-0007UO-IM for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:41:17 -0400 Original-Received: from mail-yw0-f178.google.com ([209.85.211.178]:58994) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVRO8-0005ex-0m; Mon, 27 Jul 2009 10:41:16 -0400 Original-Received: by ywh8 with SMTP id 8so377793ywh.14 for ; Mon, 27 Jul 2009 07:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hmKpfNf/pWSft7AJqcIR6JdWcO83JZgOAxlbPCIlbBg=; b=b07dil1Tc6msn6E2N9imWtf+H8MqCghUVrJmWjCuTBej1+YHwvP1XFXPjO8DDHpoMK O/WftJ7uO/O3V8HjEyAxu0aC7dJb/8jBXhJTrl6A83VzLhx+gOHa8Cmul3pXzeKTc5pM gVK46ivfKclmqwyuu1hj2sPv+hcm55dVCUXR4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NDTpLFMDKCfP1btG14ldYi02pemxRvNgrTbX5U13hkIBWH7gAxiHOoJsPnMkr2dasg Z2Y7t4SC9MXfxX76Wlp91Tmtokyx8qLlD1MAYuuaued9TJSpPdGYyFX8phZjgzyxcqca mVQ4KD99+91kt8FXZzC1U2QEDw3TSb0P5n6bI= Original-Received: by 10.100.34.16 with SMTP id h16mr8432926anh.48.1248705675202; Mon, 27 Jul 2009 07:41:15 -0700 (PDT) In-Reply-To: <4A6DBB3A.90001@gmx.at> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:113223 Archived-At: On Mon, Jul 27, 2009 at 4:35 PM, martin rudalics wrote: >> 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. =C2=A0You can set window attributes like `window-size-fixed' only a= fter > splitting. That sounds like a real problem. Can't that be moved? > You have to bind `window-min-height' and `window-min-width' > around the splitting code. Is that a problem? > `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). Hm, maybe ... ;-) I do not understand how you mean. But yes, if the sizes can be kept (or interpreted) as relative sizes when doing frame resizing. > martin >