emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: check_min_window_sizes]


From: Chong Yidong
Subject: Re: address@hidden: check_min_window_sizes]
Date: Sat, 18 Feb 2006 10:28:03 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> (progn
>>    (split-window-horizontally)
>>    (let ((window-min-width 1))
>>      (shrink-window (1- (window-width)) t)))
>>
>> removes scrollbars from both emanating windows and makes the left window
>> inaccessible.  For some strange reason `check_min_window_sizes' seems to
>> fail here.
>
> This patch removes the bug.

On second thought, the patch I posted was the wrong fix.  I believe
this one is correct (basically, size_window was checking for a
safe_min_size that included the width of window fringes and
scrollbars, but window_min_size_1 did not check for it).

*** emacs/src/window.c.~1.534.~ 2006-02-18 10:15:46.000000000 -0500
--- emacs/src/window.c  2006-02-18 10:23:42.000000000 -0500
***************
*** 2568,2574 ****
    else
      {
        if (width_p)
!       size = window_min_width;
        else
        {
          if (MINI_WINDOW_P (w)
--- 2568,2577 ----
    else
      {
        if (width_p)
!       size = max (window_min_width,
!                   (MIN_SAFE_WINDOW_WIDTH
!                    + WINDOW_FRINGE_COLS (w)
!                    + WINDOW_SCROLL_BAR_COLS (w)));
        else
        {
          if (MINI_WINDOW_P (w)




reply via email to

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