From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.bugs Subject: bug#43774: 27.1; fido-mode completion don't accept empty string nor matching substring Date: Sun, 04 Oct 2020 10:18:34 +0300 Message-ID: <87sgautq5x.fsf@protesilaos.com> References: <87ft6vkei5.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34804"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43774@debbugs.gnu.org To: Teemu Likonen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 09:19:11 2020 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 1kOyIX-0008uH-OP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 09:19:09 +0200 Original-Received: from localhost ([::1]:40206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOyIW-0001p1-QU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 03:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOyIQ-0001oq-Hn for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 03:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOyIQ-00068U-6w for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 03:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOyIQ-00059s-1A for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 03:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Protesilaos Stavrou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Oct 2020 07:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43774 X-GNU-PR-Package: emacs Original-Received: via spool by 43774-submit@debbugs.gnu.org id=B43774.160179592719807 (code B ref 43774); Sun, 04 Oct 2020 07:19:01 +0000 Original-Received: (at 43774) by debbugs.gnu.org; 4 Oct 2020 07:18:47 +0000 Original-Received: from localhost ([127.0.0.1]:44907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOyIB-00059P-2X for submit@debbugs.gnu.org; Sun, 04 Oct 2020 03:18:47 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOyI9-00059B-B9 for 43774@debbugs.gnu.org; Sun, 04 Oct 2020 03:18:45 -0400 X-Originating-IP: 213.207.159.45 Original-Received: from kronos (unknown [213.207.159.45]) (Authenticated sender: public@protesilaos.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 40FECE0004; Sun, 4 Oct 2020 07:18:36 +0000 (UTC) In-Reply-To: <87ft6vkei5.fsf@iki.fi> (Teemu Likonen's message of "Sat, 03 Oct 2020 09:30:42 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:189742 Archived-At: On 2020-10-03, 09:30 +0300, Teemu Likonen wrote: > Emacs fido-mode (which is part of icomplete-mode) implements minibuffer > completion system which offers quick and easy way to choose one of the > available options. However, sometimes user needs to enter a different > substring which is not any of the available options. Sometimes even > empty string is needed. This seems to be impossible in fido-mode. The > following example demonstrates the empty string problem. > > [..] Hi Teemu, Try to use C-j (icomplete-force-complete-and-exit) to insert a substring that is not part of the list of candidates. A simple reproducible recipe (I am on Emacs 28.0.50): + Start 'emacs -Q' + In the scratch buffer first evaluate: (fido-mode 1) + Then evaluate: (insert (completing-read "Test arbitrary input: " '(one two three))) + Instead of selecting among {one,two,three} you can type any string, such as "test" and add it with C-j. Your input shall be inserted at point. This should work for a substring, but I am not sure it does for an empty string. -- Protesilaos Stavrou protesilaos.com