From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Infrastructural complexity. Date: Sun, 26 Jul 2009 10:15:42 -0400 Message-ID: References: <20090712180623.GA1009@muc.de> <877hy3l3kj.fsf@catnip.gol.com> <4A64BF58.4030001@gmx.at> <871vobkny7.fsf@catnip.gol.com> <4A658CD2.8020504@gmx.at> <4A65C1FF.50602@gmx.at> <4A65F9F2.3060908@gmx.at> <4A672944.3080407@gmx.at> <4A682CD6.7030107@gmx.at> <4A68A099.3050501@gmx.at> <4A6970EC.7030501@gmx.at> <4A6AC834.3060802@gmx.at> <4A6B3CD6.8070307@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248617771 8289 80.91.229.12 (26 Jul 2009 14:16:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jul 2009 14:16:11 +0000 (UTC) Cc: lord@emf.net, rms@gnu.org, cyd@stupidchicken.com, lennart.borgman@gmail.com, joakim@verona.se, emacs-devel@gnu.org, juri@jurta.org, acm@muc.de, drew.adams@oracle.com, miles@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 26 16:16:02 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 1MV4WA-0003fC-2n for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2009 16:16:02 +0200 Original-Received: from localhost ([127.0.0.1]:52301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV4W8-0005QJ-Ig for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2009 10:16:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MV4W1-0005OL-OL for emacs-devel@gnu.org; Sun, 26 Jul 2009 10:15:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MV4Vw-0005MD-LH for emacs-devel@gnu.org; Sun, 26 Jul 2009 10:15:52 -0400 Original-Received: from [199.232.76.173] (port=49727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV4Vw-0005MA-GK for emacs-devel@gnu.org; Sun, 26 Jul 2009 10:15:48 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18685) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MV4Vs-0004cw-PB; Sun, 26 Jul 2009 10:15:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQFAP4BbEpFxJuZ/2dsb2JhbACBUMp2gjKBWwWHFA X-IronPort-AV: E=Sophos;i="4.43,272,1246852800"; d="scan'208";a="42168296" Original-Received: from 69-196-155-153.dsl.teksavvy.com (HELO ceviche.home) ([69.196.155.153]) by ironport2-out.teksavvy.com with ESMTP; 26 Jul 2009 10:15:43 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B37B470018; Sun, 26 Jul 2009 10:15:42 -0400 (EDT) In-Reply-To: <4A6B3CD6.8070307@gmx.at> (martin rudalics's message of "Sat, 25 Jul 2009 19:11:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) 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:113165 Archived-At: >> How 'bout: bind a enlarge-window-abort-before-delete variable to >> t in adjust-window-trailing-edge, and then check this variable before >> deleting a window? > Not really. Enlarging a window means stealing space from others and > size_window might already have stolen space from windows before it tries > to delete one. With a DELTA > 1 this might leave the frame in an > inconsistent state. That is, a window that shall be enlarged vertically > might have grown by a couple of lines but not the entire DELTA when the > action must be aborted. But if we combine it with save-window-configuration, we should be able to revert to the original state (and if we stop before deleting a window, there's no need to create a new window identity). >>> Currently, `adjust-window-trailing-edge' has a bug in that it does not >>> handle fixed-size windows correctly, see bug#3689. I think we need an >>> `enlarge-window' function which does not delete windows but is allowed >>> to resize any other windows that are not fixed-size. > Writing such a function is not entirely trivial. I suppose we'd have to > run the function without actually changing anything first and, if we > succeeded in not deleting any windows, apply the actual changes. I rather think that it requires a completely new algorithm where window-deletion is not even an option. Stefan