From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings 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 14:33:35 +0000 Message-ID: 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; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13710"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50178-done@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 25 16:34:26 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 1mItyz-0003KA-V8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 16:34:26 +0200 Original-Received: from localhost ([::1]:43142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mItyy-0002fU-3h for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 10:34:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mItyc-0002Rp-9l for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 10:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mItyc-00036H-0O for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 10:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mItyb-0005ew-U1 for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 10:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 14:34: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.162990202221727 (code D ref 50178); Wed, 25 Aug 2021 14:34:01 +0000 Original-Received: (at 50178-done) by debbugs.gnu.org; 25 Aug 2021 14:33:42 +0000 Original-Received: from localhost ([127.0.0.1]:47277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mItyH-0005eN-NB for submit@debbugs.gnu.org; Wed, 25 Aug 2021 10:33:41 -0400 Original-Received: from heytings.org ([95.142.160.155]:33190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mItyC-0005eB-Ri for 50178-done@debbugs.gnu.org; Wed, 25 Aug 2021 10:33:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1629902015; bh=bOClD2h3omwjjdIiUAsnldkVe3hjfrvTg5bnImvSLtY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=oS64rls4zSFbj53q9DQpVXSocdBcBcpsjthZNkWFg7ChJK1YAwExqRibf1Y6YbXB1 UqvNTzUyJqLMN/mvWap+xJSWRDkfU43nZe31tSAnpwLVdLfHIbo4/Av4LdT78odCEg q1jwCVe/hfxtIYC8A1IdpDJYb1tq9Kt0MFlTvP//gC7XWAUtqN1w9CeUTEZvsepdAF 4ciIX5C93rE/kteb/cjFC6u2lyO6u7WVJww8apNBo0R7qmEJ4Ww8wPYeb6g6621hLk CZBz2g85gpETvIbhK8EQ5eOeBe36GgzRXketvGCoMyIkH9UX7n7x5QGgF/40HXR5Q1 /+9R8GQAN7giw== In-Reply-To: <87k0k9er3w.fsf@telefonica.net> 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:212638 Archived-At: > > On true pixel-oriented systems there are APIs for querying the display > engine about several metrics. Then you can place the text at certain > pixel coordinates. Emacs, however, is a Frankenstein system, that uses > pixels (on graphic frames) but the text positioning depends on previous > text, i.e. for vertical positioning it is a line-based, not pixel-based, > system. Therefore, when you just need to output some lines, you must > deal with pixels, translate back to lines and, to add insult to injury, > resort to post-facto information. > > As useful as it would be an API that returns how many lines fit on a > given window. Or, on this case, max-mini-window-height being a true > indication of the capacity of the mini window on terms of the current > display settings, which is what the users want 99.9% of the time. > 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".