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 18:46:58 +0300 Message-ID: <83imc8zc0d.fsf@gnu.org> References: <20200912133311.6ujtgczj6wyclufy@Ergus> <20200920130435.heye7bk73pm252km@Ergus> <83sgbczj0i.fsf@gnu.org> <20200920144903.rqozepstuujkfz6w@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39465"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ghe@sdf.org, casouri@gmail.com, joaotavora@gmail.com, emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 20 17:48:28 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 1kK1Zk-000A9N-6w for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Sep 2020 17:48:28 +0200 Original-Received: from localhost ([::1]:41432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK1Zj-0007qv-5j for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Sep 2020 11:48:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK1YK-0007La-MJ for emacs-devel@gnu.org; Sun, 20 Sep 2020 11:47:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36265) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK1YJ-00045e-It; Sun, 20 Sep 2020 11:46:59 -0400 Original-Received: from [176.228.60.248] (port=4249 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kK1YI-0001vZ-V1; Sun, 20 Sep 2020 11:46:59 -0400 In-Reply-To: <20200920144903.rqozepstuujkfz6w@Ergus> (message from Ergus on Sun, 20 Sep 2020 16:49:03 +0200) 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:256257 Archived-At: > Date: Sun, 20 Sep 2020 16:49:03 +0200 > From: Ergus > Cc: Eli Zaretskii , casouri@gmail.com, joaotavora@gmail.com, > emacs-devel@gnu.org > > (setq icomplete-separator "\n") > (setq icomplete-prospects-height 10) > (defvar icomplete-saved-resize-mini-windows nil) > > (defun icomplete-minibuffer-exit-hook () > (setq resize-mini-windows icomplete-saved-resize-mini-windows) > (remove-hook 'minibuffer-exit-hook #'icomplete-minibuffer-exit-hook)) > > (add-hook 'icomplete-minibuffer-setup-hook > '(lambda () > (setq icomplete-saved-resize-mini-windows resize-mini-windows) > (setq resize-mini-windows nil) > (enlarge-window icomplete-prospects-height) > (add-hook 'minibuffer-exit-hook #icomplete-minibuffer-exit-hook))) Like I said previously: beware, the temporary resize-mini-windows setting should be in effect when redisplay of the mini-window runs, and I'm not quite sure that happens when your lambda-function is called.