bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#4534: assertion failure at window.c:grow_mini_window


From: martin rudalics
Subject: bug#4534: assertion failure at window.c:grow_mini_window
Date: Thu, 24 Sep 2009 18:10:12 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> With that patch, and
>
>    emacs -Q --eval "(setq resize-mini-windows t)"
>
> the assertion triggers (delta == -1) as soon as I hit C-x

Because I removed the corresponding check.  Please try again.

martin
*** xdisp.c.~1.1295.~   2009-08-20 10:47:19.687500000 +0200
--- xdisp.c     2009-09-24 18:04:18.343750000 +0200
***************
*** 8789,8816 ****
        }
        else
        {
!         /* Always resize to exact size needed.  */
          if (height > WINDOW_TOTAL_LINES (w))
!           {
!             int old_height = WINDOW_TOTAL_LINES (w);
!             freeze_window_starts (f, 1);
!             grow_mini_window (w, height - WINDOW_TOTAL_LINES (w));
!             window_height_changed_p = WINDOW_TOTAL_LINES (w) != old_height;
!           }
!         else if (height < WINDOW_TOTAL_LINES (w))
!           {
!             int old_height = WINDOW_TOTAL_LINES (w);
!             freeze_window_starts (f, 0);
!             shrink_mini_window (w);
! 
!             if (height)
!               {
!                 freeze_window_starts (f, 1);
!                 grow_mini_window (w, height - WINDOW_TOTAL_LINES (w));
!               }
! 
!             window_height_changed_p = WINDOW_TOTAL_LINES (w) != old_height;
!           }
        }
  
        if (old_current_buffer)
--- 8789,8800 ----
        }
        else
        {
!         int old_height = WINDOW_TOTAL_LINES (w);
!         freeze_window_starts (f, 1);
!         shrink_mini_window (w);
          if (height > WINDOW_TOTAL_LINES (w))
!           grow_mini_window (w, height - WINDOW_TOTAL_LINES (w));
!         window_height_changed_p = WINDOW_TOTAL_LINES (w) != old_height;
        }
  
        if (old_current_buffer)

reply via email to

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