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:36:26 +0200 Message-ID: <4A6DBB6A.2020106@gmx.at> References: <4A6DAD94.8040006@gmx.at> <87tz0yb4yy.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248712106 28069 80.91.229.12 (27 Jul 2009 16:28:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 16:28:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 18:28:19 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 1MVT3i-0003YZ-BE for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 18:28:18 +0200 Original-Received: from localhost ([127.0.0.1]:58706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVT3h-00022j-NM for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 12:28:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVRJd-0003R1-Pf for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:36:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVRJY-0003LU-9C for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:36:37 -0400 Original-Received: from [199.232.76.173] (port=47471 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVRJV-0003KT-S6 for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:36:30 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:46266) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MVRJU-0004qO-MM for emacs-devel@gnu.org; Mon, 27 Jul 2009 10:36:29 -0400 Original-Received: (qmail invoked by alias); 27 Jul 2009 14:36:27 -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 (mp066) with SMTP; 27 Jul 2009 16:36:27 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX197S1V5hj573x+bSYEn+dYRurZVDyFwC2QlK/mbE5 bx2vrvFYtn4Y54 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87tz0yb4yy.fsf@catnip.gol.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:113222 Archived-At: >> `window-parent' and `window-children' would be trivial. Providing >> `set-window-children' is hardly feasible IMHO. Who'd be responsible for >> calculating the respective sizes? > > Currently split-window does, and that doesn't seem particularly > complicated. Because it doesn't split internal windows. Anyway `enlarge-window' and `delete-window' which eventually wind up calling size_window are more complicated. > Certainly set-window-children has to do a fair bit of sanity checking, > but it's not going to be any greater than that currently done by > split-window, and that function isn't all that complicated. `set-window-children' with arguments nil? > Hmm, I dunno why it's hard -- just copy the appropriate bits from split-window. Anything that doesn't resize other windows is easy. Everything that does is complicated. Believe me, there's a couple of bugs in the C code implementing resizing. > Maybe set-window-children would end up being mostly sanity-checking > code, but that's OK -- it'll probably be smaller than split-window, and > will serve as a nice low-level interface. Obviously, if you leave the size-handling code in C. >> martin, whose `switch-to-buffer' is in window.el > > Wait... switch-to-buffer is in C... Not mine ;-) martin