From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#66948: [PATCH] Add Completion Preview mode Date: Mon, 06 Nov 2023 09:22:48 +0200 Organization: LINKOV.NET Message-ID: <86a5rrcqd3.fsf@mail.linkov.net> References: <87lebcqcof.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16920"; 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: dmitry@gutov.dev, philipk@posteo.net, me@eshelyaron.com, joaotavora@gmail.com To: 66948@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 06 08:32:45 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qzu6H-0004E7-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Nov 2023 08:32:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzu5z-0001h4-Oq; Mon, 06 Nov 2023 02:32:28 -0500 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 1qzu5x-0001dD-KH for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 02:32:26 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzu5x-00089g-Bs for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 02:32:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzu6Y-0007AN-HH for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 02:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2023 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Dmitry Gutov , Philip Kaludercic , Eshel Yaron , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 66948@debbugs.gnu.org Original-Received: via spool by 66948-submit@debbugs.gnu.org id=B66948.169925597627508 (code B ref 66948); Mon, 06 Nov 2023 07:33:02 +0000 Original-Received: (at 66948) by debbugs.gnu.org; 6 Nov 2023 07:32:56 +0000 Original-Received: from localhost ([127.0.0.1]:38590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzu6S-00079c-6S for submit@debbugs.gnu.org; Mon, 06 Nov 2023 02:32:56 -0500 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:58951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzu6R-00079C-BM for 66948@debbugs.gnu.org; Mon, 06 Nov 2023 02:32:55 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id C34CE60002; Mon, 6 Nov 2023 07:32:09 +0000 (UTC) In-Reply-To: (Eshel Yaron via's message of "Sun, 05 Nov 2023 20:42:44 +0100") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273859 Archived-At: >> and that there is no option to cycle between inexact completions. > > That's interesting, can you elaborate about the use case that you have > in mind? I thought about adding a command to do that, but I wasn't sure > there'd be a good use case for it since you can always dismiss the > preview (e.g. with `C-g`) and say `C-M-i` to pick another candidate. Is it possible to avoid typing `C-g` before typing `C-M-i` for the list of completions? I mean that I'd prefer only TAB or RET to accept the completion suggestion, but not `C-M-i`. Then when the proposed preview is correct, TAB or RET will accept it, otherwise `C-M-i` will immediately display a list of alternative completions.