GNU bug report logs -
#23124
Two minibuffer resize related bugs
Previous Next
Reported by: martin rudalics <rudalics <at> gmx.at>
Date: Sun, 27 Mar 2016 15:35:01 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Tue, 29 Mar 2016 18:02:19 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: 23124 <at> debbugs.gnu.org
>
> >> >> At this moment "nothing" happens here (Bug#1). When I now switch (via
> >> >> Alt TAB) to the new frame (the one created via C-x 5 2), the message
> >> >> appears there. When I now type C-p in the new frame, the minibuffer
> >> >> window shrinks back but the space previously occupied by the modeline of
> >> >> the window above is not redrawn, hence I get two modelines above each
> >> >> other (Bug#2).
> >>
> >> I've now traced this behavior back to this
> >
> > "This behavior" being what? both the "nothing happens" part and the
> > "duplicate mode line" part?
>
> Yes, both.
>
> >> In fact, removing the
> >>
> >> x_consider_frame_title (w->frame);
> >>
> >> call from redisplay_window fixes both bugs here.
> >
> > Can you explain how the call to x_consider_frame_title causes problems
> > with the echo area and the mode line?
>
> Be assured I would have done that if I had found a clue.
I think I might have. Does the patch below give good results?
diff --git a/src/xdisp.c b/src/xdisp.c
index d701306..bf8068b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -17082,7 +17082,10 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
ignore_mouse_drag_p = true;
#endif
}
+ ptrdiff_t count1 = SPECPDL_INDEX ();
+ specbind (Qinhibit_redisplay, Qt);
x_consider_frame_title (w->frame);
+ unbind_to (count1, Qnil);
#endif
}
This bug report was last modified 9 years and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.