From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [rudalics@gmx.at: check_min_window_sizes] Date: Fri, 17 Feb 2006 22:58:49 -0500 Message-ID: <87u0axpbba.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1140275147 26056 80.91.229.2 (18 Feb 2006 15:05:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2006 15:05:47 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 18 16:05:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FATeW-0003yX-RY for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2006 16:05:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FASyM-0006p4-0F for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2006 09:22:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FAJFH-00033f-Gm for emacs-devel@gnu.org; Fri, 17 Feb 2006 22:58:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FAJFE-00030Y-UP for emacs-devel@gnu.org; Fri, 17 Feb 2006 22:58:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAJFE-00030R-RQ for emacs-devel@gnu.org; Fri, 17 Feb 2006 22:58:52 -0500 Original-Received: from [18.95.6.7] (helo=outgoing.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FAJKg-0003OV-B8; Fri, 17 Feb 2006 23:04:30 -0500 Original-Received: by outgoing.mit.edu (Postfix, from userid 1000) id 4F4611E423B; Fri, 17 Feb 2006 22:58:49 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sun, 12 Feb 2006 23:40:29 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:50699 Archived-At: > With Emacs -q evaluating > > (progn > (split-window-horizontally) > (let ((window-min-width 1)) > (shrink-window (1- (window-width)) t))) > > removes scrollbars from both emanating windows and makes the left window > inaccessible. For some strange reason `check_min_window_sizes' seems to > fail here. This patch removes the bug. But I am not very familiar with the window code, so if someone could check that this is correct, it'd be great. *** emacs/src/window.c.~1.534.~ 2006-02-17 22:53:49.000000000 -0500 --- emacs/src/window.c 2006-02-17 22:56:56.000000000 -0500 *************** *** 4064,4070 **** this_one = delta; (*setsizefun) (next, (*sizefun) (next) - this_one, 0); ! (*setsizefun) (window, XINT (*sizep) + this_one, 0); delta -= this_one; } --- 4064,4070 ---- this_one = delta; (*setsizefun) (next, (*sizefun) (next) - this_one, 0); ! (*setsizefun) (window, XINT (*sizep) + this_one, 1); delta -= this_one; }