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 16:52:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> Right, but in your message you referred to 1 and 2, rather than to
>> window-min-(height|width).  As far as I can tell, we're discussing
>> window resizing which is only affected by window-min-(height|width).
>> MIN_SAFE_WINDOW_(HEIGHT|WIDTH) only affect window-min-(height|width), so
>> it only affects resizing in a very indirect manner (e.g. we can scan
>> all windows, reset window-min-(height|width) to valid values and the
>> resize without paying attention to MIN_SAFE_WINDOW_(HEIGHT|WIDTH)).

> shrink_windows is called with a min_size argument of 1 if shrinking
> heights.  That's all I can observe.

When I put a breakpoint on shrink_windows, I see it gets called with
a min_size of 4 (and width_p is 0).  I.e. it gets called with the value
of window-min-height, just as it should.

>> Yes, but I do use 1-line-high windows, and disallowing them just because
>> we can't be bothered to write the window-resize code in the right way
>> isn't the right answer.

> That's why shrink_windows would have to check for every window whether
> it has a modeline and not resize it if it has one and its actual height
> is 2.

I still do not understand what modelines have to do with it.


        Stefan




reply via email to

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