[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.
- Re: feature/icomplete-vertical, (continued)
- Re: feature/icomplete-vertical, Gregory Heytings, 2020/09/19
- Re: feature/icomplete-vertical, Stefan Monnier, 2020/09/19
- Re: feature/icomplete-vertical, Gregory Heytings, 2020/09/19
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/09/19
- Re: feature/icomplete-vertical, Ergus, 2020/09/19
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/09/19
- Re: feature/icomplete-vertical, Ergus, 2020/09/19
- Re: feature/icomplete-vertical, Stefan Monnier, 2020/09/19
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/09/20
- Re: feature/icomplete-vertical, Gregory Heytings, 2020/09/20
- Re: feature/icomplete-vertical,
Ergus <=
- Re: feature/icomplete-vertical, Dmitry Gutov, 2020/09/19
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/09/20
- Re: feature/icomplete-vertical, Gregory Heytings, 2020/09/19
- Re: feature/icomplete-vertical, Ergus, 2020/09/19
- RE: feature/icomplete-vertical, Drew Adams, 2020/09/19
- RE: feature/icomplete-vertical, Gregory Heytings, 2020/09/19
- RE: feature/icomplete-vertical, Drew Adams, 2020/09/19