Subject: Re: bug#26997: 25.2; Ido broken when ido-enable-dot-prefix non-nil and empty string is a choice

From: [email-masked]
Date: Sat, 20 May 2017 21:56:43 -0400

tags 26997 fixed
close 26997 26.1
quit

Ryan <[email-masked]> writes:

> Open "emacs -Q" and run the following code:
>
> (let ((ido-enable-dot-prefix t))
>    (ido-completing-read "Pick: " '("" "a" "b" "c")))
>
> Then try to type anything and you will get a message (but no backtrace):
>
> Error in post-command-hook (ido-exhibit): (args-out-of-range "" 0)
>
> And ido completion will be broken. This happens any time
> ido-enable-dot-prefix is non-nil and "" is one of the choices for ido.
> The following patch to ido.el seems to fix the problem.
>

Thanks, pushed to master [1: f422b46eb1].

[1: f422b46eb1]: 2017-05-20 21:54:02 -0400
  Fix ido-enable-dot-prefix for empty choice (Bug#26997)
  http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=f422b46eb1d3c62c912ee0806486d017f5153e54