From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: try-completion not showing all possible completions?
Date: Thu, 05 Jan 2006 00:22:41 -0500 [thread overview]
Message-ID: <m17j9f2qs3.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3zmmcx0ha.fsf@loki.cmears.id.au> (Chris Mears's message of "Wed, 04 Jan 2006 12:09:37 +1100")
> (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
next prev parent reply other threads:[~2006-01-05 5:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-04 1:09 try-completion not showing all possible completions? Chris Mears
2006-01-05 5:22 ` Stefan Monnier [this message]
2006-01-05 6:01 ` Chris Mears
2006-01-05 16:27 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m17j9f2qs3.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.