From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#24293: 25.1; Display bug: icomplete prompt not visible with icomplete-separator "\n" Date: Sat, 19 Sep 2020 13:47:12 -0400 Message-ID: References: <87r39fxzg3.fsf@web.de> <83d1kzfogn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23889"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Heerdegen , 24293@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 19 19:48: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 1kJgy2-00068S-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 19:48:11 +0200 Original-Received: from localhost ([::1]:48124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJgy1-0004eL-Q7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 13:48:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJgxu-0004eD-ON for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 13:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJgxu-0003SN-EC for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 13:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJgxu-0002NA-CG for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 13:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Sep 2020 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24293 X-GNU-PR-Package: emacs Original-Received: via spool by 24293-submit@debbugs.gnu.org id=B24293.16005376429068 (code B ref 24293); Sat, 19 Sep 2020 17:48:02 +0000 Original-Received: (at 24293) by debbugs.gnu.org; 19 Sep 2020 17:47:22 +0000 Original-Received: from localhost ([127.0.0.1]:48049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJgxF-0002MA-Sa for submit@debbugs.gnu.org; Sat, 19 Sep 2020 13:47:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:46673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJgxE-0002Lz-F4 for 24293@debbugs.gnu.org; Sat, 19 Sep 2020 13:47:20 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0C8D1810D1; Sat, 19 Sep 2020 13:47:15 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9ECE580D0E; Sat, 19 Sep 2020 13:47:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1600537633; bh=Edm5vIhMGgxJhO/OJHkQJYjB4qByK+XV7YTx0W1wFM8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=C/VAgmi3+8LqpvHEibuskr6JW1HkXCaHhf2xNi0RW21JeDMUA80uy6FbJSZU/nVIV cXcMYrbxh28fAZcg0uF+xhusCdHZZEG+8T+VHd4y8yQ5bY3D0VJqv+2hn+FZwLuz24 Qf3NRoqJ1L3mRmpamNjlZvCXdKEG522T5xIstlgW6V/kgP9N7bZd+BN76hx1q7ryz2 Mp+TF6ANTDZhHNUSduLmU7JyEITGcmPB90cCcF6v0Q/2hfpBy83rojx9aeUO8PPI+J 4PDM2xAorS0W0zv0swdcg3NPUh87+Lxj61kpKT98QdJRXRssW51nQjz0wSdDKbeLAy EGBr3m0oAUPVQ== Original-Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 71D911206C2; Sat, 19 Sep 2020 13:47:13 -0400 (EDT) In-Reply-To: <83d1kzfogn.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Aug 2016 19:18:48 +0300") 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:188421 Archived-At: >> In emacs -Q, eval >> >> (setq icomplete-separator "\n") >> >> and do >> >> M-x icomplete-mode >> >> Then, e.g. >> >> M-x m >> >> The icomplete minibuffer prompt is invisible (bug). >> >> But you see that it's "there" when you hit . And changing the >> value of `resize-mini-windows' to nil makes the issue disappear - so I >> think this is caused by a problem in the display code. > > Surprisingly, stepping through the code with a debugger reveals that > this is not a bug, but (almost) deliberate behavior. Set > max-mini-window-height to 0.9, and you will see the entire prompt. The "prompt" in the above example is not the whole text shown in the minibuffer but just "M-x m". > The default value of that variable is 0.25, so Emacs doesn't resize > mini-windows to more than 1/4th of the height of the frame's root > window. And the height required to show the prompt is much larger in > this case. No, a single line is sufficient to show "the prompt". Stefan