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 15:58:56 +0200 Message-ID: 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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248703548 30917 80.91.229.12 (27 Jul 2009 14:05:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 14:05:48 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 16:05:42 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 1MVQph-0000Tk-R1 for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 16:05:42 +0200 Original-Received: from localhost ([127.0.0.1]:40427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVQpg-00072e-Ob for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 10:05:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVQjH-0003b3-5l for emacs-devel@gnu.org; Mon, 27 Jul 2009 09:59:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVQjC-0003Ua-Tk for emacs-devel@gnu.org; Mon, 27 Jul 2009 09:59:02 -0400 Original-Received: from [199.232.76.173] (port=35514 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVQjC-0003UP-Q1 for emacs-devel@gnu.org; Mon, 27 Jul 2009 09:58:58 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]:15887) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVQjA-00054y-Sy; Mon, 27 Jul 2009 09:58:57 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so2789079ana.21 for ; Mon, 27 Jul 2009 06:58:56 -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=xbXvk6uMsOeGKGm8NR9LHtRncD5XGdUP20f86rvO3rg=; b=f49kXWsrszXvaihYYbveJLHOUseLnUU8EtYW5VDr9ioNFQi/wFE+0L2pnrtOQ45gs7 32HZ4nIpHOIMYKdbsjZK6V+zRyj2thwy+h4HjDCKqn9YCeuXoNpPVlJwUFaYRe2kBnqq Mnu1jJojPXohSECJrLZCl9q763ojyt1TomFQs= 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=e1vUr/kHiyfiAcOSzHwNjz1aRcrgdBYTKe0QshWM9iyNyvgYQ5RQlV3k4jCLWWJaR9 1FHKhKP/0iYaoelv65ThlwFlM+qZmjj5JI59eouLM9nJaw85rWh9cUR/Qd2xBJ9FN+Nq 58qFwslso1Frz9tJT1+/cl8BECjAMRpb5WM3s= Original-Received: by 10.100.34.16 with SMTP id h16mr8370967anh.48.1248703136306; Mon, 27 Jul 2009 06:58:56 -0700 (PDT) In-Reply-To: <4A6DAF71.6070002@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:113217 Archived-At: On Mon, Jul 27, 2009 at 3:45 PM, martin rudalics wrote: >> What do you mean? Is not the code in winsav.el non-procedural enough? > > IIRC you're using `split-window' recursively to restore configurations. 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.) 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?