|
From: | Gregory Heytings |
Subject: | Re: feature/icomplete-vertical |
Date: | Sun, 20 Sep 2020 14:07:45 +0000 |
User-agent: | Alpine 2.22 (NEB 394 2020-01-19) |
Initially I separated icomplete--prospects only, but then all the height calculation complexity came and that's why I ended with the complex approach. I didn't know that the prompt issue disappeared with(setq resize-mini-windows nil)What I wonder about this is the potential conflicts when another package or function relies on resize-mini-windows. And that the ... is not shown to indicate that there are more candidates.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, in fact I wrote "It needs some tweaking, but it works." Indeed one should do something with user preferences, and use a setq-local. The point is that doing this is much simpler than trying to calculate the height of the completion candidate list, which amount (as Stefan wrote) to redoing what redisplay does.
[Prev in Thread] | Current Thread | [Next in Thread] |