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: mouse-drag-mode-line should maybe use window-tree Date: Mon, 05 Dec 2005 17:48:34 +0100 Message-ID: <43946F62.2030304@student.lu.se> References: <200511251837.jAPIbONx025976@brains.moreideas.ca> <438F8DA5.1040102@ourcomments.org> <439379B9.4050003@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133802530 28479 80.91.229.2 (5 Dec 2005 17:08:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 17:08:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 05 18:08:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjJny-0002Hd-LK for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2005 18:07:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjJo7-00028w-GG for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2005 12:07:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjJWJ-0006kw-Ii for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:48:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjJWC-0006dE-9c for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:48:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjJWB-0006cy-KM for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:48:47 -0500 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjJWg-00030B-Lj; Mon, 05 Dec 2005 11:49:19 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 438DFE23001622E8; Mon, 5 Dec 2005 17:48:35 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: rms@gnu.org In-Reply-To: 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:47009 Archived-At: Richard M. Stallman wrote: > After spending some time wondering why you wrote the new function I > realized that it was just enough to nicely fit the needs of the resizing > functions. The new function also seems to work in all cases I have > tested so far. > >If you're not careful about the order in which you move the edges, >adjust-window-trailing-edge can easily give you an error. The reason >is that it never moves any edges above or below the one you specify to >move, and it can't make any window too small. > >If you're not careful about the order to move the edges, >some intermediate state could easily be invalid, resulting >in an error. > >Perhaps your code copes with this issue already. If not, it needs to. > > I think it copes with this. For the case of what I have called "interactive resize" (with the arrow keys) there are no problems. For the case of the new version of balance-windows (which I so far calls `bw-balance') I catch the errors and loop. So far I have seen no drawbacks with this.