From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43519: 28.0.50; Overlay at end of minibuf hides minibuf's real content Date: Sun, 20 Sep 2020 21:04:02 +0000 Message-ID: References: <83wo0p1twr.fsf@gnu.org> <83r1qx1q9v.fsf@gnu.org> <838sd425l2.fsf@gnu.org> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2418"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (NEB 394 2020-01-19) Cc: Stefan Monnier , 43519@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 20 23:05:13 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 1kK6WF-0000UD-A8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 23:05:11 +0200 Original-Received: from localhost ([::1]:35806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK6WD-0005SC-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 17:05:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK6W6-0005S2-RZ for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 17:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kK6W6-0008IA-Hs for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 17:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kK6W6-00060v-Cq for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 17:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Sep 2020 21:05:02 +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.160063584923051 (code B ref 43519); Sun, 20 Sep 2020 21:05:02 +0000 Original-Received: (at 43519) by debbugs.gnu.org; 20 Sep 2020 21:04:09 +0000 Original-Received: from localhost ([127.0.0.1]:52816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK6VF-0005zj-BR for submit@debbugs.gnu.org; Sun, 20 Sep 2020 17:04:09 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:49963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK6VC-0005zZ-IQ for 43519@debbugs.gnu.org; Sun, 20 Sep 2020 17:04:07 -0400 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 08KL45Ew002333 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 20 Sep 2020 21:04:05 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 08KL4KFp024763; Sun, 20 Sep 2020 21:04:20 GMT In-Reply-To: <838sd425l2.fsf@gnu.org> 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:188543 Archived-At: For some reason I did not receive a copy of your mail. I see it now. > > . Fix these problems on the application level. In the case in > point, that would mean for icomplete.el to augment its > calculations of where to truncate the list of candidates so that > the problem doesn't happen (and AFAICT it doesn't happen if the > stuff to be displayed in the mini-window fits the mini-window > after resizing it to max-mini-window-height). > It is difficult to fix such problems on the application level. If the stuff to be displayed in the mini-window fits the mini-window after resizing it to max-mini-window-height, the problem does not happen indeed. But the difficulty is precisely to create the stuff to be displayed in such a way that it fits the mini-window, because it can use a font that is not the default one, it can have embedded newlines, it can contain lines that are too wide for the mini-window, and so forth. > > . Define in more detail what situations we would like to fix in the > display code, so that we could install special ad-hoc changes > there to handle those situations. For example: is it true that in > all of these situations starting the mini-window display at BOB > would DTRT? If so, I think this could be arranged. If not, why > not, and what is the more correct definition of the situations we > want to handle? > See my proposal, which does exactly this. Yes, it is true that in all of these situations starting the mini-window display at BOB would do the right thing. > > IOW, the basic logic is to show the last max-mini-window-height screen > lines of what's in mini-window. > Yes, and this is not desirable in certain cases, it should be possible to show the *first* max-mini-window-height screen lines of what's in mini-window.