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: Problem with window-size-fixed Date: Sun, 26 Jul 2009 11:44:05 +0200 Message-ID: <4A6C2565.7030803@gmx.at> References: 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 1248601472 3671 80.91.229.12 (26 Jul 2009 09:44:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jul 2009 09:44:32 +0000 (UTC) Cc: emacs-devel To: =?ISO-8859-1?Q?Vincent_Bela=EFche?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 26 11:44:25 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 1MV0HI-0001Sf-MN for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2009 11:44:24 +0200 Original-Received: from localhost ([127.0.0.1]:36803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV0HI-0003FM-4Q for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2009 05:44:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MV0HB-0003EL-C8 for emacs-devel@gnu.org; Sun, 26 Jul 2009 05:44:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MV0H6-0003B5-4z for emacs-devel@gnu.org; Sun, 26 Jul 2009 05:44:16 -0400 Original-Received: from [199.232.76.173] (port=59811 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV0H5-0003B2-WC for emacs-devel@gnu.org; Sun, 26 Jul 2009 05:44:12 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:49486) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MV0H5-0004ud-BT for emacs-devel@gnu.org; Sun, 26 Jul 2009 05:44:11 -0400 Original-Received: (qmail invoked by alias); 26 Jul 2009 09:44:08 -0000 Original-Received: from 62-47-49-25.adsl.highway.telekom.at (EHLO [62.47.49.25]) [62.47.49.25] by mail.gmx.net (mp042) with SMTP; 26 Jul 2009 11:44:08 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+6HBIeZ/q69BeHg7zUapKtaoU6L/UOFQ69ahuobX lYfH/3oLnn5oHr User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:113156 Archived-At: > A problem concerning window-size-fixed was reported on newsgroupfr.comp.applications.emacs > (http://groups.google.fr/group/fr.comp.applications.emacs/browse_thread/thread/f617026a5906fcd3#) > To see the problem put the following code into a file > test.el and launch emacs with: emacs -q -l test.el > > ;---------------------------------------------- > (setq inhibit-startup-message t) > (split-window-vertically) > (split-window-vertically) > (split-window-horizontally) > (switch-to-buffer (get-buffer-create "buffer1")) > (select-window (next-window)) > (switch-to-buffer (get-buffer-create "buffer2")) > (select-window (next-window)) > (switch-to-buffer (get-buffer-create "buffer3")) > (select-window (next-window)) > (switch-to-buffer (get-buffer-create "buffer4")) > (select-window (previous-window)) > (enlarge-window (- 5 (window-height))) > (setq window-size-fixed t) > ;---------------------------------------------- > > I have tested this with the very latest CVS version GNU Emacs 23.1.50.1 (i386-mingw-nt5.0.2195) of 2009-07-25 (sorry again for the disturbance and thanks to Eli for help) > and the same problem happens. > So what happens is that I correctly get the following window partitionning: > Buffer 1 | Buffer 2 > ---------+--------- > Buffer 3 > ------------------- > Buffer 4 > ------------------- > > with buf 1 and 2 of 7 rows, buf 3 of 4 rows, and buf 4 taking the remainder (that is 38 > rows for me). > The issue is that buffer 3 is supposed to be fixed-size. This is true if you use `C-u N C-x ^' for re-dimensionning, but it is not true if you try to do it by mouse, in that case buffer 4 is fixed-size instead. FWIW this is a bug in `adjust-window-trailing-edge' which was already reported as bug#3689, compare http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3689 Please have a look. Thanks, martin