Subject: Re: bug#6192: bug#14520: 24.3; minibuffer resizes when message contains bold or italic text

From: Eli Zaretskii <[email-masked]>
Date: Thu, 05 May 2022 19:25:18 +0300

> Cc: [email-masked], [email-masked]
> From: Lars Ingebrigtsen <[email-masked]>
> Date: Thu, 05 May 2022 14:20:26 +0200
> 
> Stephen Berman <[email-masked]> writes:
> 
> > 1. Let ~/.emacs consist of the following line:
> > (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
> >
> > 2. Start Emacs with the above init-file.
> >
> > 3. Visit an Emacs lisp file that's long enough to scroll a number of
> > screens up and down, e.g. lisp/abbrev.el from the Emacs source
> > directory.
> >
> > 4. Type `M->' (end-of-buffer).
> >
> > 5. Type 'M-v' (scroll-down-command)
> >
> > => This puts point at line 902 (at least here, with window-height 33),
> > which is at the bottom of the window as it should be -- but only for a
> > fraction of a second, and then point is recentered so that line 902 is
> > now in the middle of the window.
> 
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
> 
> I'm unable to reproduce this problem in Emacs 29 -- are you still seeing
> this issue in recent Emacs versions?

It can legitimately happen if the bold font is either slightly higher
that the default font, or the line displayed by eldoc is longer than a
single screen line.

This is not a bug, even if it still can be reproduced.

However, the OP didn't say what was on line 902 of abbrev.el in that
version of Emacs, so it is impossible to find out what actually
happened.