GNU bug report logs -
#50178
28.0.50; Size of echo area does not account for line-spacing
Previous Next
Reported by: Óscar Fuentes <ofv <at> wanadoo.es>
Date: Tue, 24 Aug 2021 02:09:02 UTC
Severity: normal
Found in version 28.0.50
Done: Óscar Fuentes <ofv <at> wanadoo.es>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>
> To elaborate:
>
> (1) You first have to calculate the maximum permissible pixel height of
> the echo area window from the character height of the frame where you
> intend to display the completions and the value of
> `max-mini-window-height' height as specified for that frame. Note that
> for a minibuffer-less frame the echo area window may appear on another
> frame whose character height you have to use here.
>
> (2) You then have to calculate the pixel height of each completion line
> as if it were shown in the echo area window mentioned in (1) using
> `window-text-pixel-size' and add it to some cumulative height until you
> have exhausted the maximum permissible height calculated in (1).
>
If you can live with the fact that the last visible completion candidate
is not fully displayed (which is, as Eli said, consistent with what
happens in other Emacs windows), this complex procedure is not necessary
anymore. You can simply set redisplay-adhoc-scroll-in-resize-mini-windows
to nil and insert "enough" completion candidates. Emacs will resize the
window appropriately, and the last completion candidates will not be
visible.
This bug report was last modified 3 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.