[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs should provide more modern item completion out of the box
From: |
Stefan Monnier |
Subject: |
Re: Emacs should provide more modern item completion out of the box |
Date: |
Tue, 28 Jan 2020 22:09:06 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Using a vertical display while keeping instant feedback of icomplete-mode
> that doesn't require pressing TABs should be easy to do as well:
[,,,]
> (defun minibuffer-quick-update ()
> (when (>= (length (minibuffer-contents)) minibuffer-quick-min)
> (let ((completion-styles '(flex))
> (last-command nil))
> (minibuffer-complete))))
Why `minibuffer-complete`? This will actually perform completion
(i.e. it may modify the content of the minibuffer). I think you want to
use `minibuffer-completion-help` instead (and I'm not sure why you bind
`completion-styles` since it will only take effect during the display
but not when the user finally hits RET). Also, you probably want to run
this within a `while-no-input` of some kind.
Stefan
Re: Emacs should provide more modern item completion out of the box, Andrea Corallo, 2020/01/03
- Re: Emacs should provide more modern item completion out of the box, ndame, 2020/01/03
- Re: Emacs should provide more modern item completion out of the box, Dmitry Gutov, 2020/01/03
- Re: Emacs should provide more modern item completion out of the box, jeremyb, 2020/01/03
- Re: Emacs should provide more modern item completion out of the box, Andrea Corallo, 2020/01/04
- Re: Emacs should provide more modern item completion out of the box, Stefan Kangas, 2020/01/08
Re: Emacs should provide more modern item completion out of the box, Stefan Monnier, 2020/01/04
Re: Emacs should provide more modern item completion out of the box, Dmitry Gutov, 2020/01/06