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: Wed, 23 Sep 2009 14:21:39 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> FWIW, commenting out this chunk from shrink_mini_window, it works as expected.
>
>     Juanma
>
>
>
> diff --git a/src/window.c b/src/window.c
> index 08fd8c8..c892436 100644
> --- a/src/window.c
> +++ b/src/window.c
> @@ -4677,17 +4677,18 @@ void
>  shrink_mini_window (w)
>       struct window *w;
>  {
> -  struct frame *f = XFRAME (w->frame);
> -  struct window *root = XWINDOW (FRAME_ROOT_WINDOW (f));
> -
> -  if (save_restore_orig_size (root, CHECK_ORIG_SIZES))
> -    {
> -      save_restore_orig_size (root, RESTORE_ORIG_SIZES);
> -      adjust_glyphs (f);
> -      FRAME_WINDOW_SIZES_CHANGED (f) = 1;
> -      windows_or_buffers_changed = 1;
> -    }
> -  else if (XFASTINT (w->total_lines) > 1)

This would make the whole save/restore code obsolete.  Unfortunately,
the resulting alternative (enlarge_window) is even worse because it
might delete windows (when it tries to enlarge them) :-(

martin





reply via email to

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