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.devel Subject: Re: feature/icomplete-vertical Date: Sun, 20 Sep 2020 17:28:50 +0300 Message-ID: <83lfh4zfml.fsf@gnu.org> References: <20200912133311.6ujtgczj6wyclufy@Ergus> <20200920130435.heye7bk73pm252km@Ergus> <83sgbczj0i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27138"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org, casouri@gmail.com, joaotavora@gmail.com To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 20 16:29:49 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kK0Lc-0006yq-AP for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Sep 2020 16:29:48 +0200 Original-Received: from localhost ([::1]:41400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK0Lb-0005y3-Cm for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Sep 2020 10:29:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK0Ki-0005XN-Ls for emacs-devel@gnu.org; Sun, 20 Sep 2020 10:28:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35237) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK0Kh-0001U4-52; Sun, 20 Sep 2020 10:28:51 -0400 Original-Received: from [176.228.60.248] (port=3456 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kK0Kg-0003Bq-2M; Sun, 20 Sep 2020 10:28:50 -0400 In-Reply-To: (message from Gregory Heytings on Sun, 20 Sep 2020 14:07:45 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256253 Archived-At: > Date: Sun, 20 Sep 2020 14:07:45 +0000 > From: Gregory Heytings > cc: Ergus , casouri@gmail.com, joaotavora@gmail.com, > emacs-devel@gnu.org > > > > resize-mini-windows is a user option, so resetting it globally is almost > > certainly a non-starter. > > > > The three lines I sent: > > (setq icomplete-separator "\n") > (setq icomplete-prospects-height 10) > (add-hook 'icomplete-minibuffer-setup-hook (function (lambda () (setq resize-mini-windows nil) (enlarge-window icomplete-prospects-height)))) > > had no other purpose except demonstrating that (setq resize-mini-windows > nil) solves the problem of disappearing prompts. Of course I do not > consider that these lines should be blindly used Please note that I wasn't replying to your proposal, I was replying to Jimmy's. > trying to calculate the height of the completion candidate list, > which amount (as Stefan wrote) to redoing what redisplay does. I don't agree with Stefan, if this interpretation of what he said is correct. We have window-text-pixel-size to measure the size of text on display without redoing what redisplay does.