From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-mode-line should maybe use window-tree Date: Mon, 05 Dec 2005 11:37:47 -0500 Message-ID: References: <200511251837.jAPIbONx025976@brains.moreideas.ca> <438F8DA5.1040102@ourcomments.org> <439379B9.4050003@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1133802073 26725 80.91.229.2 (5 Dec 2005 17:01:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 17:01:13 +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:01:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjJfJ-0007gc-2Z for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2005 17:58:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjJfR-0003wh-Jp for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2005 11:58:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjJM7-0007qU-GC for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:38:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjJM5-0007lj-3d for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:38:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjJM3-0007l6-1P for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:38:20 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjJMZ-0007yc-7m for emacs-devel@gnu.org; Mon, 05 Dec 2005 11:38:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EjJLX-0005SK-UP; Mon, 05 Dec 2005 11:37:48 -0500 Original-To: Lennart Borgman In-reply-to: <439379B9.4050003@student.lu.se> (message from Lennart Borgman on Mon, 05 Dec 2005 00:20:25 +0100) 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:47004 Archived-At: 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.