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 00:20:25 +0100 Message-ID: <439379B9.4050003@student.lu.se> References: <200511251837.jAPIbONx025976@brains.moreideas.ca> <438F8DA5.1040102@ourcomments.org> 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 1133738591 21453 80.91.229.2 (4 Dec 2005 23:23:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Dec 2005 23:23:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 05 00:23:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ej3BA-0002Om-EK for ged-emacs-devel@m.gmane.org; Mon, 05 Dec 2005 00:22:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ej3BG-0003AM-Sd for ged-emacs-devel@m.gmane.org; Sun, 04 Dec 2005 18:22:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ej39s-0002XH-3B for emacs-devel@gnu.org; Sun, 04 Dec 2005 18:20:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ej39p-0002W6-SL for emacs-devel@gnu.org; Sun, 04 Dec 2005 18:20:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ej39p-0002Vc-5u for emacs-devel@gnu.org; Sun, 04 Dec 2005 18:20:37 -0500 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ej3AC-0007sQ-Jg; Sun, 04 Dec 2005 18:21:00 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.069.1) id 43903C2400093275; Mon, 5 Dec 2005 00:20:26 +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:46973 Archived-At: Richard M. Stallman wrote: > To me the documentation for `adjust-window-trailing-edge' looks like it > is doing the same thing as `enlarge-window' with preserve-before set to > t. Am I missing something? > >They are not the same, because adjust-window-trailing-edge will never >delete a window. > > 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. Thanks for this, it made it much easier to write the new functions for balance-windows. I have replaced `enlarge-window' with `adjust-window-trailing-edge' everywhere in the new version: http://ourcomments.org/Emacs/DL/elisp/test/bwcvs.el I am stil waiting for someone to test this and give some feedback. (There is still a little bit cleanup to do in the code, but I wait with this until I have seen that using the new functions have been tested a bit more.) So please test this. A little recall of the proposed new functions: C-x + -- this now starts a new temporary minor mode for resizing, bw-window-resize-mode In this temporary minor mode the keybindings are: + -- new balance-windows, called bw-balance . -- balance siblings only, called bw-balance-siblings arrow keys -- interactive resize, modelled after GUI keyboard resize on w32