From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Juri Linkov <juri@linkov.net>
Newsgroups: gmane.emacs.devel
Subject: Re: Updating *Completions* as you type
Date: Sat, 14 Oct 2023 19:51:05 +0300
Organization: LINKOV.NET
Message-ID: <86il79nnou.fsf@mail.linkov.net>
References: <87bkd3z9bi.fsf@catern.com> <83fs2ft4nq.fsf@gnu.org>
 <ierbkd24d19.fsf@janestreet.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="2052"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)
Cc: emacs-devel@gnu.org
To: Spencer Baugh <sbaugh@janestreet.com>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 14 19:35:15 2023
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1qriXi-0000IN-Na
	for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Oct 2023 19:35:14 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces@gnu.org>)
	id 1qriWp-0004aT-I2; Sat, 14 Oct 2023 13:34:19 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@linkov.net>) id 1qriWm-0004aJ-Vp
 for emacs-devel@gnu.org; Sat, 14 Oct 2023 13:34:16 -0400
Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@linkov.net>) id 1qriWl-0001em-0P
 for emacs-devel@gnu.org; Sat, 14 Oct 2023 13:34:16 -0400
Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 616B420004;
 Sat, 14 Oct 2023 17:34:09 +0000 (UTC)
In-Reply-To: <ierbkd24d19.fsf@janestreet.com> (Spencer Baugh's message of
 "Fri, 13 Oct 2023 14:01:38 -0400")
X-GND-Sasl: juri@linkov.net
Received-SPF: pass client-ip=217.70.183.200; envelope-from=juri@linkov.net;
 helo=relay7-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.devel:311450
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/311450>

> icomplete-mode (and its derivatives) doesn't work for in-buffer
> completion.  Also, it is buggier than the default completion scheme.

Actually, now icomplete-mode supports in-buffer completion quite well.

> By asynchronous completion, I just mean being able to type, and trigger
> completion, and have completions appear incrementally as they are
> computed, without interfering with you continuing to type.  I don't
> think that stops immediate feedback for typing.

I believe this is achievable by just wrapping code with while-no-input.