emacs-devel
[Top][All Lists]
Advanced

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

Re: try-completion not showing all possible completions?


From: Stefan Monnier
Subject: Re: try-completion not showing all possible completions?
Date: Thu, 05 Jan 2006 00:22:41 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

>     (let ((table (make-vector 1021 0)))
>       (intern "johnny jones" table)
>       (intern "joe blow" table)
>       (intern "jimi hendrix" table)
>       (try-completion "j" table (lambda (s) (princ (format "%s\n" s)))))

> I would expect the output to be all three names in the table.  However,
> in the current CVS Emacs it produces:

>     johnny jones
>     jimi hendrix
>     "j"

> "joe blow" has been omitted.  I tested the same code in Emacs 21.4.1 and
> it does what I expected:

>     johnny jones
>     jimi hendrix
>     joe blow
>     "j"

> Can anyone shed some light on this?

Simple optimization: after seeing johnny jones and jimi hendrix,
try-completion already knows that the return value will be "j", so it
doesn't look any further.


        Stefan




reply via email to

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