[Top][All Lists]

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

Re: Window splitting issues with margins

From: Eli Zaretskii
Subject: Re: Window splitting issues with margins
Date: Fri, 13 Nov 2015 15:54:05 +0200

> Date: Fri, 13 Nov 2015 11:01:48 +0100
> From: martin rudalics <address@hidden>
> CC: address@hidden
>  > If we are talking about the needs of window-resize, then let's think
>  > in terms of that function's needs.  How about if a window or a buffer
>  > could specify the minimum width of its text body, and window-resize
>  > could then use that information when it decides how to split?
> ‘window-resize’ doesn't split.  If you mean ‘split-window-sensibly’ then
> it already compares ‘split-width-threshold’ with the width of the text
> area of the window that shall be split.  But all this is very
> hypothetical since ‘display-buffer’ will usually display another buffer
> in the new window with different local variables and needs.  Neither
> ‘split-window-sensibly’ nor ‘window-splittable-p’ are up to this task.

I'm sorry, how does display-buffer come into this picture?  I thought
the original problem was with splitting a wide window in which the
margins were set to a large size in order to keep the body text at a
smaller width.  I'm asking whether we could pass this information to
the code which splits the window, so that its decisions would take
that information into consideration.

reply via email to

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