From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50178: 28.0.50; Size of echo area does not account for line-spacing Date: Tue, 24 Aug 2021 21:49:08 +0300 Message-ID: <83wnoavftn.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50178@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 Tue Aug 24 20:50:13 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 1mIbUz-0004Jh-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 20:50:13 +0200 Original-Received: from localhost ([::1]:34112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIbUw-0004AI-SW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 14:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIbUo-00049t-Sf for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 14:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIbUo-0001Me-LV for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 14:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIbUo-0005e4-HO for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 14:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Aug 2021 18: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.162983096221645 (code B ref 50178); Tue, 24 Aug 2021 18:50:02 +0000 Original-Received: (at 50178) by debbugs.gnu.org; 24 Aug 2021 18:49:22 +0000 Original-Received: from localhost ([127.0.0.1]:45232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIbUA-0005d2-Dq for submit@debbugs.gnu.org; Tue, 24 Aug 2021 14:49:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIbU7-0005cm-V7 for 50178@debbugs.gnu.org; Tue, 24 Aug 2021 14:49:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46300) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIbU2-0000rO-4C; Tue, 24 Aug 2021 14:49:14 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4261 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIbU1-0006Ky-MP; Tue, 24 Aug 2021 14:49:14 -0400 In-Reply-To: <871r6ig01r.fsf@telefonica.net> (message from =?UTF-8?Q?=C3=93scar?= Fuentes on Tue, 24 Aug 2021 20:38:56 +0200) 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:212572 Archived-At: > From: Óscar Fuentes > Cc: 50178@debbugs.gnu.org > Date: Tue, 24 Aug 2021 20:38:56 +0200 > > Eli Zaretskii writes: > > > But the former is basically impossible to provide, not in Emacs 21+ > > with its support for variable-size fonts and display of images and > > xwidgets as part of text. Even with just different fonts, N lines > > using font of size X are not the same as N lines with size Y. > > We are talking about the mini window here. It's contents are much more > restricted, in the sense that it is determined by some command. I don't really see how can we say that, given the proliferation of the various completion packages, which display everything that can be displayed in the mini-window. > This bug report is about such command wanting to show at least N > lines, using the current display settings (font, line spacing, etc). And I still don't understand what is wrong with the recipe you've shown. In my testing, I see a very long list of candidates, with several ones fully visible and one visible only partially. I can scroll down the list to see more candidates, including the one which was initially displayed partially. I fail to see a problem with that, sorry. > >> You can't navigate around on the contents of the mini-window. > > > > ??? Of course, I can. What do you mean by "you can't"? The > > mini-window is just another window, so as long as you can make it the > > selected window (e.g., when the minibuffer is active), you can > > navigate there. > > Allowing the user to move around on the mini window possibly is at odds > with the UI of the command using the mini window. Certainly, it would be > an inconvenience, as I mentioned before. Again, I don't see any inconvenience. It's just the normal vertical motion of the cursor, not unlike any other window. > Curiously, something like > > (message "foo1\nfoo2\nfoo3\nfoo4\nfoo4\nfoo5\nfoo6\nfoo7\nfoo8") > > doesn't show truncated lines because it apparently ignores the value of > line-spacing. It does here, I guess you didn't turn line-spacing by default or something. Try emacs -Q --eval "(setq-default line-spacing 0.2)" > ido-grid-mode does not support vertical scrolling (it is not supposed to > do that and it would be a burden if it did) and with certain values of > line-spacing the last line(s) are partially visible or invisible. It's > as simple as that. It uses max-mini-window-height for ensuring that the > text fits on the mini-window, but that doesn't work on the presence of > line-spacing. > > One workround would be to locally set line-spacing to nil (overriding > the user's preferences), but this does not protect against other current > or future settings that might affect how the lines are rendered. Or it could calculate max-mini-window-height more accurately.