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#43519: 28.0.50; Overlay at end of minibuf hides minibuf's real content Date: Sat, 19 Sep 2020 21:52:04 +0300 Message-ID: <83wo0p1twr.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43519@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 19 21:00:11 2020 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 1kJi5j-0001Kc-DA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 21:00:11 +0200 Original-Received: from localhost ([::1]:43114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJi5i-0004w9-8n for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 15:00:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJhyo-0005DO-I5 for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 14:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJhyn-0002KL-Ko for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJhyn-00064h-K3 for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 14:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Sep 2020 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43519 X-GNU-PR-Package: emacs Original-Received: via spool by 43519-submit@debbugs.gnu.org id=B43519.160054153723302 (code B ref 43519); Sat, 19 Sep 2020 18:53:01 +0000 Original-Received: (at 43519) by debbugs.gnu.org; 19 Sep 2020 18:52:17 +0000 Original-Received: from localhost ([127.0.0.1]:48124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJhy5-00063m-8A for submit@debbugs.gnu.org; Sat, 19 Sep 2020 14:52:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJhy2-00063X-4K for 43519@debbugs.gnu.org; Sat, 19 Sep 2020 14:52:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50164) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJhxw-0002Fg-Hs; Sat, 19 Sep 2020 14:52:08 -0400 Original-Received: from [176.228.60.248] (port=2668 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kJhxw-00051M-0A; Sat, 19 Sep 2020 14:52:08 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 19 Sep 2020 13:54:13 -0400) 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:188429 Archived-At: > From: Stefan Monnier > Date: Sat, 19 Sep 2020 13:54:13 -0400 > > % src/emacs -Q --eval '(setq max-mini-window-height 1)' -f icomplete-mode > M-x a > > at this point, you should presumably not see the "M-x a" in your > minibuffer window but only something of the form "{rp | lign | ..." Seems like a bug in icomplete: it attempts to compute the maximum length of candidates to be displayed, but seems like it fails, because the single mini-window line is continued, with no ellipsis at the end of the visible line? The fact that it calls window-width with no arguments is one possible problem -- it assumes the default face's font. But I think the problem is more prominent than just that. It should produce an overlay string that fits in the window, then the prompt will be visible. Am I missing something?