From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.devel Subject: Re: Updating *Completions* as you type Date: Sat, 14 Oct 2023 22:26:52 +0300 Message-ID: <31660.7329108351$1697311668@news.gmane.org> References: <87bkd3z9bi.fsf@catern.com> <83fs2ft4nq.fsf@gnu.org> <83o7h1sms2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 14 21:27:40 2023 Return-path: 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 ) id 1qrkIV-00040F-Pf for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Oct 2023 21:27:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrkHt-0007n1-Dk; Sat, 14 Oct 2023 15:27:01 -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 ) id 1qrkHr-0007kw-UP for emacs-devel@gnu.org; Sat, 14 Oct 2023 15:26:59 -0400 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrkHo-0007fp-2H; Sat, 14 Oct 2023 15:26:58 -0400 Original-Received: from odin (dsl-trebng12-50dc77-87.dhcp.inet.fi [80.220.119.87]) by thaodan.de (Postfix) with ESMTPSA id 4EC9DD08D70; Sat, 14 Oct 2023 22:26:53 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1697311613; bh=jpHZgLgjIF49BVfBmtKnKaJ8O7PkXWiNobqiketS+K8=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Ab95U0HJ5Q2nwt60r/1/LOw4k5Z8kietBUc16Fq/uHqpX43FvwB86QTl0aa2ZrGp5 lGS5kHg8ummEMNe2fzC6RET9Mhn3f9YKwfTjLkL/AL+Hok6uC8D7vOQ1fHVXL99+0v Vr3GqAInkSg365UNUEMuMN7WWUJgnpCthe85xuBQyFK+dQdHTBVteKsgGe36p51kFd cqSnaR5TMgtXlhDbabKcn2cHtbOuaI9jQ235GTENiexFs/b+737hPTrwOw/kXJAKNe KMmUqF37HO1QW5Y7BiCdMQCWV1VZW+/eAifwIqazhoVHhNIZX18mAtLBR+kgLR/UZj yZtIUmiKk4+eghLsEmzyUlwoFN1+hZ6hA3tjQy87uUWe264BiMVllzpiUYFpBiV+0s uv+t6yHgt8uIynRCKSm+RteyH5WD7zroYaagTcjWCBJexifHk9PixC9VmeB4YuLLGg sDY4V7+mfXBV25T4dKd2MbWnJ8rQDaRN/EAOjJIOCWkfhhjZuKYFFJibCSagIt/cFN +IxES1YJNJD2CExE/iDxk3J3L0TWTWdEiS7U8UIFLh3daWLVkej++ape9uh4SEysXy dPeV5SLqkXS+PCaM3KGx43+MQd2YowyvF5ujtfXUJiA6zNAisXrV5/lUD3r3gt6+GF LnFkqafrcmWVXO+3+q4Ekmw0= In-Reply-To: <83o7h1sms2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Oct 2023 10:09:33 +0300") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, INVALID_MSGID=0.568, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:311454 Archived-At: Eli Zaretskii writes: >> > IIUC what you mean by "asynchronous completion", it is a terrible >> > idea. How can anyone type text without getting immediate feedback for >> > what he/she typed? When I sometimes see this (due to network delays >> > or system load or whatever), it is a terrible UX. >> >> 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. > > If it's asynchronous, then how can we make sure the feedback is > immediate? The feedback updates while typing but doesn't show until the delay set by the user has passed to show the suggestions again. If the feedback hasn't updated by the time the user stops typing then the old state is shown similar to how the feedback is when the completion is synchronous. I most cases I think the feedback updates as fast as the major mode can update the buffer to pass it e.g. to an internal function or language server/or alike. In cases of external programs parsing the just updated buffer the completion can be nearly asynchronous already.