Subject: Re: bug#10994: 23.3; ido-mode: ido-next-match / ido-prev-match work wrong with same elements

From: Leo Liu <[email-masked]>
Date: Tue, 19 Mar 2013 23:01:06 +0800

On 2012-03-11 20:33 +0800, Anonymous wrote:
> (require 'ido)
> (ido-completing-read "dat is whrong -> " '("2" "3" "3" "3" "4" "5"))

Would you be able to give the following patch a though test? Thanks in
advance.

diff --git a/lisp/ido.el b/lisp/ido.el
index 589f4417..6c747124 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3156,7 +3156,7 @@ (defun ido-chop (items elem)
 	(sofar nil))
     (while (not ret)
       (setq next (car items))
-      (if (equal next elem)
+      (if (eq next elem)
 	  (setq ret (append items (nreverse sofar)))
 	;; else
 	(progn