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

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

bug#60015: 29.0.60; multi-line messages truncated in non-selected minibu


From: Juri Linkov
Subject: bug#60015: 29.0.60; multi-line messages truncated in non-selected minibuffer
Date: Sat, 17 Dec 2022 19:39:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> Juri, does the patch below give good results?  It's a bit of overkill,
> since the mini-window usually doesn't need any resizing, but maybe
> that is not too bad.
>
> If it seems to solve the problem, would you please run with this for a
> couple of weeks, and report back if you see any problems?  If there
> are no problems, I'll then install this on the emacs-29 branch.
>
> diff --git a/src/xdisp.c b/src/xdisp.c
> index d14cd46..45da496 100644
> --- a/src/xdisp.c
> +++ b/src/xdisp.c
> @@ -19429,6 +19429,13 @@ redisplay_window (Lisp_Object window, bool 
> just_this_one_p)
>           blank_row (w, row, y);
>         goto finish_scroll_bars;
>       }
> +      else if (minibuf_level >= 1)
> +     {
> +       /* We could have a message produced by set-minibuffer-message
> +          displayed in the mini-window as an overlay, so resize the
> +          mini-window if needed.  */
> +       resize_mini_window (w, false);
> +     }

I tested it for a while and see no problems with it.





reply via email to

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