bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46091: ido: Add support for tab completion using an alist collection


From: Lars Ingebrigtsen
Subject: bug#46091: ido: Add support for tab completion using an alist collection.
Date: Mon, 13 Jun 2022 21:04:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Keith David Bershatsky <esq@lawlist.com> writes:

> Currently, ido does not support tab completion using an alist collection.
>
> (require 'ido)
>
> (let* ((alist '(("pine" . "cones")
>                 ("oak" . "acorns")
>                 ("maple" . "seeds")))
>        (choice (ido-completing-read "CHOOSE:  " alist nil 'confirm)))
>   (cdr (assoc choice alist)))
>
> ;;; Debugger entered--Lisp error: (wrong-type-argument listp "seeds")
> ;;;   ido-no-final-slash(("maple" . "seeds"))
> ;;;   ido-file-lessp(("maple" . "seeds") ("oak" . "acorns"))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

You say "currently", but not what Emacs version this was about.

I tried evaling the form above in Emacs 25.1 and Emacs 29, and it didn't
fail in either of those cases, but perhaps there's something missing in
the recipe?  Or has this gone away since whateve version you say this in?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]