unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: 43774@debbugs.gnu.org
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	[thread overview]
Message-ID: <87sgautq5x.fsf@protesilaos.com> (raw)
In-Reply-To: <87ft6vkei5.fsf@iki.fi> (Teemu Likonen's message of "Sat, 03 Oct 2020 09:30:42 +0300")

On 2020-10-03, 09:30 +0300, Teemu Likonen <tlikonen@iki.fi> 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





  reply	other threads:[~2020-10-04  7:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-03  6:30 bug#43774: 27.1; fido-mode completion don't accept empty string nor matching substring Teemu Likonen
2020-10-04  7:18 ` Protesilaos Stavrou [this message]
2020-10-04  8:24   ` Teemu Likonen
2021-06-06 11:09     ` Lars Ingebrigtsen
2021-06-06 12:15     ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sgautq5x.fsf@protesilaos.com \
    --to=info@protesilaos.com \
    --cc=43774@debbugs.gnu.org \
    --cc=tlikonen@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).