From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics 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 09:49:11 +0200 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4518"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50178@debbugs.gnu.org To: Eli Zaretskii , =?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 09:51:11 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 1mIngk-0000zj-Fp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 09:51:10 +0200 Original-Received: from localhost ([::1]:53592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIngj-0003LP-03 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 03:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mInfe-0002Vm-QV for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 03:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mInfe-0008Dg-Iv for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 03:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mInfe-0003oh-Hg for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 03:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 07:50:02 +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-submit@debbugs.gnu.org id=B50178.162987776014616 (code B ref 50178); Wed, 25 Aug 2021 07:50:02 +0000 Original-Received: (at 50178) by debbugs.gnu.org; 25 Aug 2021 07:49:20 +0000 Original-Received: from localhost ([127.0.0.1]:45621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIney-0003ng-6b for submit@debbugs.gnu.org; Wed, 25 Aug 2021 03:49:20 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:45845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mInew-0003nT-RG for 50178@debbugs.gnu.org; Wed, 25 Aug 2021 03:49:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1629877752; bh=wdeNPCcobJhAejPeJ67XbV5TInatUuM4LdY6FkXFweA=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=aK5QpImeYQWcwe1WhiXjI1bwx8+JjmyxEUJBf587VMvi1UKY5BGpINtbNbE7BRPiJ kFI4W0Q3JIRXF7ihbfZcSiPjfKdWpwOPsNQI5by5xPWgECKUFnYn6ZJRYileC1zfLw hzOvHwSaeL/S02gRXKi7+iR04NSag92J2/TCU0pw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.185]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1poA-1mL0aF3vPk-002F13; Wed, 25 Aug 2021 09:49:12 +0200 In-Reply-To: <83sfyyuupx.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:avxXODWhBovGrYIHb/5Wi4yS8kBXn4C4xCsJ1g68jZrfy+m16Aa CGYZKSC1bm+LltvtPyVpXgL5me/ubb6olr9/LPYVXt/9TkrsBSXMZSZ0+ieIcqwPZWuyynM jFIgq0SnFKFCqGbDKobDynPybvdryu9G5CTNkpZPvwXyAD/x6pHNpukzCRs1aqiGgBwsVUe coGlqfP/knAxkRpXqjMCQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:d+hUU/9yptk=:fqaZ/9oO0sV20j2xcUR0Mo wryxzUvW8LM/NsVmh4+UCUcPlkQapT+6LIv9PThRLB1kA3FCAahSKj9gf7EGdszhnyXRakJMb RqPYDelKMdBxQG4jVwKbz49jZx6qVIzVkUBgaEGIOrLt55vJ1eGIUN3uKXOcUgXy3yhHMkf9y wCxsoUR7tn97JU2VCJ3FXivbAD77HawdbQTGywpi83rr4YsIOlo9azBUH5iuKJm4hTQ5qRV0d XZ2NMZuXw0c7JkBLz8VnfrQGy2nr8ltM9ft7EzgbZBa40ibcgCrVFNvYf0HTj7mCzmlIcE2KJ Xet/fcds0s2Dl1zCZVAeWCxrXLmtiwtLz4GUg7dBaZYZq4AFgqa4baKn9ItPX4lFv/vIszzz6 wXWougeNolNInSkWbdRQpvs4PxFWT+1WfDBgb5zJshbByxr0y9JfeJGl0d/bBV0/+oAqkKhzW LkMAumpy7NA/gtB3C1B7Dmhf37sxrnG0bSBPpilbnAkIO9q0ewBcGXrkWFkPe6c2ma31fZd7d jwfkdmsDl7v3/ZROQg3sPOKD9ryrUY0qFnkFNSGHslt+AKsKE6jyHcHeD+Z+ttTEgXWfvnJ1c JdQbebD7eapALnQeSjPdt+qXIxyih1QxgLoTANOEe+S40NcFwbVo4nZdfTLMqG+m/UloYwP/7 A2HlT0ETs03tYk9XE7r6Aj0S0ZwhcSCGnG+O9lDn2nnrWfs6a1syHW7zNfuGd1jS35IvDhUIR vEA36DC6iE33vX1s4N69rdHGj4/IQnK/ScFa4tSf0hKuRm6tlyA8kMdEkPufAKLcGTA4zc4V 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:212586 Archived-At: >> 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