all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* something between try-completion and test-completion?
@ 2008-02-06 17:16 Drew Adams
  2008-02-06 19:19 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2008-02-06 17:16 UTC (permalink / raw)
  To: Emacs-Devel

I'd be interested in a function similar to both `try-completion' and
`test-completion', but which would just test whether its STRING arg can be
completed against its COLLECTION arg, respecting its PREDICATE arg.

It would be like `test-completion', in that as soon as some match is found
it would return non-nil, not bothering to test the other completions and
calculate the common prefix.

It would be like `try-completion', in that it would test whether the STRING
is a prefix of some COLLECTION element, not whether STRING is itself one of
the COLLECTION elements.

The idea is to have a quick version of `try-completion' for situations where
the common prefix of all matches is not needed, and all you want is an
indication of whether the STRING could be completed.

Any other interest in this? Any chance this will become available?





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-07  3:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06 17:16 something between try-completion and test-completion? Drew Adams
2008-02-06 19:19 ` Stefan Monnier
2008-02-06 21:19   ` Drew Adams
2008-02-06 22:12     ` Stefan Monnier
2008-02-07  3:36     ` Richard Stallman

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.