From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#50178: 28.0.50; Size of echo area does not account for line-spacing Date: Wed, 25 Aug 2021 19:09:14 +0200 Message-ID: <87fsuxe9j9.fsf@telefonica.net> References: <87eeajfvbq.fsf@telefonica.net> <83a6l7vyu2.fsf@gnu.org> <87a6l7ezks.fsf@telefonica.net> <837dgax1a0.fsf@gnu.org> <875yvug2ka.fsf@telefonica.net> <83y28qvhhn.fsf@gnu.org> <871r6ig01r.fsf@telefonica.net> <83wnoavftn.fsf@gnu.org> <87wnoaeisl.fsf@telefonica.net> <83sfyyuupx.fsf@gnu.org> <87k0k9er3w.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21973"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50178-done@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 25 19:18:42 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIwXy-0005Uk-I6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 19:18:42 +0200 Original-Received: from localhost ([::1]:60162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIwXx-0006fM-JO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 13:18:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIwPa-0000SG-Ij for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 13:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIwPa-0006te-8q for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 13:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIwPZ-0001Mb-Ol for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 13:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 17:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50178 X-GNU-PR-Package: emacs Original-Received: via spool by 50178-done@debbugs.gnu.org id=D50178.16299113655192 (code D ref 50178); Wed, 25 Aug 2021 17:10:01 +0000 Original-Received: (at 50178-done) by debbugs.gnu.org; 25 Aug 2021 17:09:25 +0000 Original-Received: from localhost ([127.0.0.1]:47536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIwOz-0001Lg-DT for submit@debbugs.gnu.org; Wed, 25 Aug 2021 13:09:25 -0400 Original-Received: from relayout02.e.movistar.es ([86.109.101.202]:54717 helo=relayout02-redir.e.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIwOw-0001LP-Bf for 50178-done@debbugs.gnu.org; Wed, 25 Aug 2021 13:09:23 -0400 Original-Received: from sky (14.red-79-145-70.dynamicip.rima-tde.net [79.145.70.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout02.e.movistar.es (Postfix) with ESMTPSA id 4Gvss65LC8zdcYY; Wed, 25 Aug 2021 19:09:14 +0200 (CEST) In-Reply-To: (Gregory Heytings's message of "Wed, 25 Aug 2021 14:33:35 +0000") X-TnetOut-Country: IP: 79.145.70.14 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-TnetOut-MsgID: 4Gvss65LC8zdcYY.A95DA X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1630516155.13836@Vd1nGEFZWQDTUA2p2R5bXQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212663 Archived-At: Gregory Heytings writes: > Try emacs -Q, C-h h to see why it is impossible to have "an API that > returns how many lines fit on a given window". Any graphics environment worth its salt has methods for measuring whatever object without actually rendering it. It's also true that those systems work on pixels (or some other suitable, fine-grained unit) all the way, they do not reveal themselves as TTY-oriented systems when the user says "ok, then put this right here." The impossibility you mention is a limitation of Emacs. So going back to Emacs, the doctstring of max-mini-window-height is "... If an integer, it specifies the maximum height in units of the mini-window frame=E2=80=99s default font=E2=80=99s height. " Why that was implemented that way? (instead of using pixels, for instance.) Maybe because the relevant use case was to support resizing the mini window on a way that guarantees that certain number of lines (rendered on the default font) will fit on it?