From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44483: 27.1.50; Window parameter `min-margins' doesn't split window in half Date: Fri, 06 Nov 2020 20:29:33 +0200 Message-ID: <837dqy8hki.fsf@gnu.org> References: <87tuu2inkv.fsf@fastmail.fm> <83ft5m8s5a.fsf@gnu.org> <87d00qihb0.fsf@fastmail.fm> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28360"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44483@debbugs.gnu.org To: Joost Kremers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 06 19:30:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kb6V9-0007GW-CB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Nov 2020 19:30:19 +0100 Original-Received: from localhost ([::1]:33920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb6V8-0000n6-Dt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Nov 2020 13:30:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb6Us-0000jg-IB for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2020 13:30:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kb6Us-0005WO-4f for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2020 13:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kb6Ur-00054m-V2 for bug-gnu-emacs@gnu.org; Fri, 06 Nov 2020 13:30:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Nov 2020 18:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44483 X-GNU-PR-Package: emacs Original-Received: via spool by 44483-submit@debbugs.gnu.org id=B44483.160468738119465 (code B ref 44483); Fri, 06 Nov 2020 18:30:01 +0000 Original-Received: (at 44483) by debbugs.gnu.org; 6 Nov 2020 18:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:57280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb6UX-00053t-1P for submit@debbugs.gnu.org; Fri, 06 Nov 2020 13:29:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb6UV-00053h-Ua for 44483@debbugs.gnu.org; Fri, 06 Nov 2020 13:29:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44271) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb6UQ-0005RZ-Lz; Fri, 06 Nov 2020 13:29:34 -0500 Original-Received: from [176.228.60.248] (port=1910 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kb6UQ-00032b-0k; Fri, 06 Nov 2020 13:29:34 -0500 In-Reply-To: <87d00qihb0.fsf@fastmail.fm> (message from Joost Kremers on Fri, 06 Nov 2020 17:25:07 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192792 Archived-At: > From: Joost Kremers > Cc: 44483@debbugs.gnu.org > Date: Fri, 06 Nov 2020 17:25:07 +0100 > > > That expectation is incorrect by default. > > Well, let me put it this way: If I split a window in which the margins are nil, > `split-window-right`, in my experience, always splits the window in half. > (Perhaps there are cases where that is not guaranteed, I don't know, but I've > never seen any.) The equal sizes are not guaranteed, but that doesn't mean they will never happen. Especially when you put Emacs in an "impossible" situation, where a simple split will not work. > > To have the windows > > equally-sized, you need to set window-combination-resize to t, AFAIU, > > otherwise Emacs makes no promise that your expectation will be heeded. > > A quick check suggests that `window-combination-resize' has no effect here. I > still get the 1/3 - 2/3 split at least some of the time. It did work for me, so I'm unsure what's going on. Though I couldn't have a window with 283 columns to begin with, so maybe it depends on the actual sizes. > (Mind you, I'm > splitting a window that's the single window in its frame So did I. > so AFAIU there is no window combination to speak of, and > `window-combination-resize' should have no visible effect, from what > I can tell from its documentation.) I think you take the name of the variable too literally.