emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding olivetti to GNU ELPA


From: Paul W. Rankin
Subject: Re: Adding olivetti to GNU ELPA
Date: Wed, 22 May 2019 19:14:04 +1000
User-agent: mu4e 1.2.0; emacs 26.2


On Wed, May 22 2019, martin rudalics wrote:
OK. Then I'm afraid you have to do the following: Whenever olivetti mode is active in at least _one_ live window on a frame you have to use 'olivetti-split-window' on _all_ internal windows of that frame too. You can use 'walk-window-tree' for setting and resetting this parameter and the margins of all olivetti mode windows. It should not be too much of a hassle (and tell me immediately when you encounter
any problems).

The reason is that 'split-window' may be called for internal windows too. For example, if you want to make a new window on the left or right side of a frame, Emacs may want to split the root window of that frame. In this case it will check the sizes of all live subwindows of the root window and if any of these windows has too large margins, the
split may fail because of insufficient space for the new window.

Ah awesome. Thanks Martin, I think this well end up solving the funny little peculiarities I've encountered, and also the problem I had with adding a side-window to a frame containing 2 x olivetti windows split horizontally (failing due to insufficient space).

I appreciate your insights.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]