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: Tue, 11 Aug 2009 11:18:06 +0200 Message-ID: <4A81374E.9050401@gmx.at> References: <4A6DAD94.8040006@gmx.at> <4A6DAF71.6070002@gmx.at> <4A6DBB3A.90001@gmx.at> <4A6DC1A1.2000208@gmx.at> <4A6DDB61.8090403@gmx.at> <4A6EAB02.6080701@gmx.at> <4A7010D7.3050305@gmx.at> 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 1249982645 21464 80.91.229.12 (11 Aug 2009 09:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 09:24:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 11:23:58 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 1ManYy-0002k9-D0 for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 11:22:36 +0200 Original-Received: from localhost ([127.0.0.1]:34860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ManYt-0001DR-NP for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 05:22:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ManWS-0000TW-0L for emacs-devel@gnu.org; Tue, 11 Aug 2009 05:20:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ManWM-0000SM-NB for emacs-devel@gnu.org; Tue, 11 Aug 2009 05:19:59 -0400 Original-Received: from [199.232.76.173] (port=38957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ManWM-0000SG-6Y for emacs-devel@gnu.org; Tue, 11 Aug 2009 05:19:54 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:38340) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ManWL-00044x-DZ for emacs-devel@gnu.org; Tue, 11 Aug 2009 05:19:53 -0400 Original-Received: (qmail invoked by alias); 11 Aug 2009 09:19:50 -0000 Original-Received: from 62-47-35-215.adsl.highway.telekom.at (EHLO [62.47.35.215]) [62.47.35.215] by mail.gmx.net (mp071) with SMTP; 11 Aug 2009 11:19:50 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18oLS5MjTMobaRSSJKvHWw3+HIdAVM5zYDVrBbBc5 u+zuHZiHrdDSlF User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.76 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:114044 Archived-At: > Another approach is to have a transactional interface, like > start-window-configuration and end-window-configuration: > - during the transaction, windows can be resized to too-large/too-small > sizes (but maybe window-fixed-size should stil be obeyed?). This would still rely on some predictable behavior of `enlarge-window', `adjust-window-trailing-edge' and `size_window'. I suppose we should merge these functions into one Elisp function that moves the trailing edge of a window and have one C function checking whether the resulting window tree is well-formed and, if that is the case, apply the change. martin