unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: 44483@debbugs.gnu.org
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	[thread overview]
Message-ID: <837dqy8hki.fsf@gnu.org> (raw)
In-Reply-To: <87d00qihb0.fsf@fastmail.fm> (message from Joost Kremers on Fri,  06 Nov 2020 17:25:07 +0100)

> From: Joost Kremers <joostkremers@fastmail.fm>
> 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.

<Shrug> 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.





  reply	other threads:[~2020-11-06 18:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-06 14:09 bug#44483: 27.1.50; Window parameter `min-margins' doesn't split window in half Joost Kremers
2020-11-06 14:41 ` Eli Zaretskii
2020-11-06 16:25   ` Joost Kremers
2020-11-06 18:29     ` Eli Zaretskii [this message]
2020-11-06 18:12 ` martin rudalics
2020-11-06 20:36   ` Joost Kremers
2020-11-07  9:00     ` martin rudalics
2020-11-08 15:00       ` Joost Kremers
2020-11-09  8:31         ` martin rudalics
2021-10-11 12:35           ` Stefan Kangas
2021-10-11 17:18             ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837dqy8hki.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=44483@debbugs.gnu.org \
    --cc=joostkremers@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).