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: Wed, 02 Apr 2008 10:52:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>> I don't understand shrink_windows enough to make it less trigger-happy.
>>> From the code I only understand that a high value of `window-min-height'
>>> is an invitation to shoot silly windows.
>> Yes, that's indeed how it works now.  But it would be good to change it
>> a bit.  And I agree that it's not easy code.
> 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.  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.

> Agreed if "if we can't preserve its size" is read as "if we cannot
> establish the new frame-size by other means".

That's right.


        Stefan




reply via email to

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