From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Dmitry Gutov <dmitry@gutov.dev>
Newsgroups: gmane.emacs.devel
Subject: Re: Updating *Completions* as you type
Date: Sat, 14 Oct 2023 22:51:49 +0300
Message-ID: <a9c1d843-58fb-ed86-674c-126ffefde2d6@gutov.dev>
References: <87bkd3z9bi.fsf@catern.com> <83fs2ft4nq.fsf@gnu.org>
 <ierbkd24d19.fsf@janestreet.com> <86il79nnou.fsf@mail.linkov.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="11573"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Cc: emacs-devel@gnu.org
To: Juri Linkov <juri@linkov.net>, Spencer Baugh <sbaugh@janestreet.com>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 14 21:52:23 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 1qrkgR-0002ky-5h
	for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Oct 2023 21:52:23 +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 1qrkg3-0002jx-By; Sat, 14 Oct 2023 15:51:59 -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 <dmitry@gutov.dev>) id 1qrkg0-0002jm-NZ
 for emacs-devel@gnu.org; Sat, 14 Oct 2023 15:51:57 -0400
Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dmitry@gutov.dev>) id 1qrkfz-0003ns-3f
 for emacs-devel@gnu.org; Sat, 14 Oct 2023 15:51:56 -0400
Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.west.internal (Postfix) with ESMTP id BBE03320055E;
 Sat, 14 Oct 2023 15:51:52 -0400 (EDT)
Original-Received: from mailfrontend2 ([10.202.2.163])
 by compute3.internal (MEProxy); Sat, 14 Oct 2023 15:51:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm1; t=
 1697313112; x=1697399512; bh=Z3hkTvxYnEVJOGaiIW1IvjhzURa0719u3aM
 jT1awglQ=; b=tsToLxCO4hsDpVJjlGnTtbUNB4xo02erNwSfMqq/1GqFzBbceMZ
 TtrgONkatMSCmfRUcCkHoOi4YsjUSMsj3TtxCmmm/s85aMZIieTzlqs9+0dyhlYp
 raq151O/9ox+nVLP2NKqC3Om4EWoejB2JiafbDkki6A0dVN7fh0goVCAZdUpjrXM
 wmp0uPsy0Lz7fcm6lh1MdYP8E9TUna3LaozFWv3ZJnz2iHRRCo4NyShmoqP0N3eC
 pw3YsqNKYXRC8c+vYfOWBYnykD6w4qVdjhzd9VjN9ddiqtOF5TxZ2Apmdnn6Whdo
 CQsvRyJSn43mnqlTRlGv+js/JcsNoizAadA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1697313112; x=1697399512; bh=Z3hkTvxYnEVJOGaiIW1IvjhzURa0719u3aM
 jT1awglQ=; b=JYVJCoS/W0Yd2M9UVzQkrjkmbKkaXS7ekmVtiuFP6X5XJepaAn+
 xW+krKlSRdXRrrWxCY+/U8zTjCDCZjH/Bsn4+rJ0ul6+NbMfuD48UGMMsJVbcfH+
 20sUIcrDPrnrPY8nwfR7fgXEJN30clDU1FYlnUx/S505DW0SWlVU0xAzjrv65eGf
 PJwRzplinVVHgrhO9aQzZ60DD7rJn94JsK93/mEgDYg/1NuZLS2NZ0TYDwWXRy1p
 2j+MAzq1/J07/SWj8Wtstz6KoelWjEmqZsmrnSIIp3tGyLBsaEOYrKAR6NRQMNa9
 qPBJ0rzdYXFR7USI5XFVCvmU1ZqW8yGsORg==
X-ME-Sender: <xms:WPEqZftQMLW-6LXD9-v_4cjcQzh1itucqz_EQe701YuohF8LhBcUXg>
 <xme:WPEqZQcZricmDOr5olkdY1-vdJ_a_2-xthEwbgzlnUtH8SynSBRYlnHV5bbwKmUT2
 RSJNjnCclAdtUHoeL0>
X-ME-Received: <xmr:WPEqZSxKcWtecRqzp-zJUl9MfBL-tODXQ2V5RwcvqMVb45KAwN97_U_Z6Oeuy1A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrieehgddugedtucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel
 vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:WPEqZeOIU1WI4kRb5VYH2JIyEh-vKki3FHqgLJ_PvxuwHx1YGvNPwQ>
 <xmx:WPEqZf_-FKmKPESqoJvQlkHuOLuTWHbBdxPbespgyYigAMg1sMiblg>
 <xmx:WPEqZeVIBJFyTT_cXtY7IGbHwCIKipyFZ43fP01fqine5lyEXbLj3A>
 <xmx:WPEqZZmt78Lhj1sPQGSQ6MinD6z3GuywekyUMCEXkIOrnjMcBJdQKw>
Feedback-ID: i0e71465a:Fastmail
Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 14 Oct 2023 15:51:50 -0400 (EDT)
Content-Language: en-US
In-Reply-To: <86il79nnou.fsf@mail.linkov.net>
Received-SPF: pass client-ip=64.147.123.20; envelope-from=dmitry@gutov.dev;
 helo=wout4-smtp.messagingengine.com
X-Spam_score_int: -60
X-Spam_score: -6.1
X-Spam_bar: ------
X-Spam_report: (-6.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.339,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=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:311457
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/311457>

On 14/10/2023 19:51, Juri Linkov wrote:
>> 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.
> 

icomplete-exhibit uses while-no-input, FWIW.