From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron Newsgroups: gmane.emacs.devel Subject: Re: Inline completion preview Date: Tue, 31 Oct 2023 18:43:09 +0100 Message-ID: References: <2c15c71f-613d-ec61-774d-93e7696470eb@gutov.dev> <8ec6cab5d8104227fef6123b9c99f93a@condition-alpha.com> <8af5efc7-754a-111d-42d7-b875edbb6202@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30660"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , Jo , Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: Alexander Adolf Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 31 18:44:09 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 1qxsmf-0007oR-3C for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Oct 2023 18:44:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxslo-000370-Gn; Tue, 31 Oct 2023 13:43:16 -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 1qxslm-00036n-UD for emacs-devel@gnu.org; Tue, 31 Oct 2023 13:43:14 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxsll-0000mC-IP; Tue, 31 Oct 2023 13:43:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1698774192; bh=tAxENC16pEcCATO1S3fIYeo6HoGZl3sMS1wJIy2Jsnc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BCJww2q9MbBi4o2AmIxkCJXg5kSR+QQk9Gps4sO0B97jaD5DnwAzcYJBvYeXoH47H TctYyzwieYT82KNRSwsom8Ta6QLrlYlPht9NkXgxrO0vyKvpFXtM6uXoB7yF5YN8wj vaRH5Eq2pwjDXQ3FcTGcPy15p8+B35DbL4Ui72thmodR+fSkcfiM8jiqyOIvwmkKe6 3W4g+1ohRi0pObmgjr9cJKyVLGTOlXjHnaxTjNcFfw+eCoZgOyJSL81FEyS2zItR0w RJmfh6YurB88DFvMXCJuqPkT2eYgga7FG7sAQ729RkYQfSdAcEggFPas2HEbNqWfZ7 KwvJTT0ue9GhA== In-Reply-To: (Alexander Adolf's message of "Tue, 31 Oct 2023 18:31:36 +0100") Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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." 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:312023 Archived-At: Alexander Adolf writes: > Eshel Yaron writes: > >> [...] >> I find this company/corfo comparison quite compelling, but I'd like to >> steer the discussion back to the topic at hand: adding inline completion >> *preview* to Emacs. Could you check out my proposed implementation[0] >> and weigh in on adding it to core, possibly as part of completion.el? >> [...] > > Thanks for the prod, Eshel. Good getting things back on track. Gladly :) > It seems to me that corfu's `corfu-preview-current` option does just > that when set to `insert`. I tried it, and to me at least it seemed to > do what you describe. Hmm no, it doesn't do quite the same thing. I use `corfu` with those settings myself, alongside with `completion-preview-mode`, which operates as you type without invoking your in-buffer completion UI. You can enable `completion-preview-mode` and start typing in some programming buffer to see the difference. Cheers, Eshel