GNU bug report logs - #50178
28.0.50; Size of echo area does not account for line-spacing

Previous Next

Package: emacs;

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


Message #35 received at 50178 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>, Óscar Fuentes
 <ofv <at> wanadoo.es>
Cc: 50178 <at> debbugs.gnu.org
Subject: Re: bug#50178: 28.0.50; Size of echo area does not account for
 line-spacing
Date: Wed, 25 Aug 2021 09:49:11 +0200
>> It must know and handle every setting that affects line height, current
>> and future. It would be handy if Emacs provided a function that does
>> that.
>
> We already have it: window-text-pixel-size.

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).

martin




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.