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

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

Re: Completion: display of candidates


From: Stefan Monnier
Subject: Re: Completion: display of candidates
Date: Mon, 18 Feb 2019 15:48:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Right, and here comes the next problem: concretely I get my completions
> from `locate --basename <pattern>`.  So the user (me) might enter a
> wildcard pattern like "foo*bar.*".  But the completions/matches
> obviously have no * in it, so no completion matches the candidates.

That completely depends on the completion style.

For example `partial-completion` (which is included in the default
`completion-styles`) does accept * so you can do `M-x r*v*uf TAB` to
find revert-buffer.

> How to handle that?  Use the PREDICATE argument in completing-read so

The PREDICATE argument can only rule out matches, not add new ones.


        Stefan



reply via email to

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