Consider the following code:

(fido-mode 1)

(let ((answer (completing-read "Please enter nothing: " '("Something"))))
  (if (string= answer "")
      (message "You successfully entered nothing!")
    (message "You failed :(")))

How can I ensure that answer is the empty string ("")?

Both RET and C-j return "Something".

1 Answer 1


You have to use icomplete-fido-exit. It's by default bound to M-j.

(icomplete-fido-exit FORCE)

Attempt to exit minibuffer immediately with current input.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.