unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juri Linkov <juri@linkov.net>
Cc: ndame <emacsuser@freemail.hu>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>,
	Dmitry Gutov <dgutov@yandex.ru>
Subject: Re: Emacs should provide more modern item completion out of the box
Date: Tue, 28 Jan 2020 22:09:06 -0500	[thread overview]
Message-ID: <jwva767x8rx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87eevje3tm.fsf@mail.linkov.net> (Juri Linkov's message of "Tue,  28 Jan 2020 23:54:29 +0200")

> 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




  reply	other threads:[~2020-01-29  3:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-02 13:44 Emacs should provide more modern item completion out of the box ndame
2020-01-02 22:31 ` Dmitry Gutov
2020-01-03  5:39   ` ndame
2020-01-28 21:54     ` Juri Linkov
2020-01-29  3:09       ` Stefan Monnier [this message]
2020-01-29 23:00         ` Juri Linkov
2020-01-29 23:57           ` Stefan Monnier
2020-01-03  9:18   ` Andrea Corallo
2020-01-03  9:45     ` ndame
2020-01-03 12:57     ` Dmitry Gutov
2020-01-03 22:37     ` jeremyb
2020-01-04 18:16       ` Andrea Corallo
2020-01-08 10:28         ` Stefan Kangas
2020-01-04 20:52     ` Stefan Monnier
2020-01-06 15:27       ` Dmitry Gutov
2020-01-06 15:52         ` Stefan Monnier
2020-01-08 10:22     ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwva767x8rx.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=emacsuser@freemail.hu \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).