all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Tassilo Horn <tsdh@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Completion: display of candidates
Date: Mon, 18 Feb 2019 15:48:36 -0500	[thread overview]
Message-ID: <jwv7edwesgm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <877edwsxw1.fsf@gnu.org> (Tassilo Horn's message of "Mon, 18 Feb 2019 20:24:30 +0100")

> 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	other threads:[~2019-02-18 20:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18  7:54 Completion: display of candidates Tassilo Horn
2019-02-18 13:26 ` Stefan Monnier
2019-02-18 14:55   ` Tassilo Horn
2019-02-18 18:05     ` Stefan Monnier
2019-02-18 19:24       ` Tassilo Horn
2019-02-18 20:48         ` Stefan Monnier [this message]
2019-02-19  7:27           ` Tassilo Horn
2019-02-19 15:28             ` Stefan Monnier
     [not found]               ` <87imxe1pfs.fsf@gnu.org>
2019-02-20 16:54                 ` 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=jwv7edwesgm.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tsdh@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.