emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature/icomplete-vertical


From: Ergus
Subject: Re: feature/icomplete-vertical
Date: Sun, 20 Sep 2020 15:04:20 +0200

On Sun, Sep 20, 2020 at 10:47:44AM +0000, Gregory Heytings via Emacs 
development discussions. wrote:

Hi Ergus,

I don't know if you're following the discussion on bug#43519, but there is in fact an almost trivial way to implement icomplete-vertical:

(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))))

It needs some tweaking, but it works.

That's indeed similar to what the external package does with some extras
(remove the {} and add the extra line after the {, truncate the long
ones, resize automatically when less candidates based on an option).

https://github.com/oantolin/icomplete-vertical

Then the only thin we need is (setq resize-mini-windows nil) and doesn't
need to be in the icomplete-minibuffer-setup-hook.

The problem was that I tried to avoid calling enlarge-window and I
thought there was a good reason to do that... my bad.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]