emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.60; Resizing may delete windows


From: Stefan Monnier
Subject: Re: 23.0.60; Resizing may delete windows
Date: Thu, 03 Apr 2008 09:56:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>> I suppose that `shrink_windows' simply has to take into account the
>>> presence of modelines when checking the min_size of windows.  That's
>>> quite tedious to do - I have to alloc a second vector to store the
>>> minimum sizes of all involved windows.
>> 
>> I can't think of any reason why the modelines would matter.

> FWIW, because shrink_windows and the rest of window.c have different
> conceptions of what min_size is: shrink_windows considers a window of
> height 2 as resizable to 1 (because min_size equals 1).  All other
> functions either delete a window of height 1 or don't allow to resize it
> to 1 if the window wants a modeline.

>> Just, when
>> rearranging windows because of a change somewhere (frame size or
>> other-window size), try hard not to shrink a window (i.e. prefer
>> shrinking another window) if that shrinkage would cause it to
>> be deleted.

> That's what I meant - I have to teach shrink_windows not to ask for
> resizing windows of height 2.

I'm not sure I understand what you mean: window-min-(height|width) is
a variable.  Where do you get your constants from?


        Stefan




reply via email to

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