[Top][All Lists]

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

Re: minibuffer-completion-help, metadata and determining completions sor

From: Stefan Monnier
Subject: Re: minibuffer-completion-help, metadata and determining completions sort order
Date: Sat, 18 Jun 2011 16:03:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> I'm having a hard time understanding how one provides custom
> metadata to completion-all-completions and friends.

The completion table needs to provide the metadata.

> Isuppose I could provide a no-op sorter once I figure out to
> supply the metadata; however that still feels wasteful since we

If the sort function is `identity' it will leave this as-is.

> would end up traversing the list of completions for no reason ---

Why would you think it needs to traverse the list of completions?
[ Not that it would matter anyway, since the list has already been
  traversed before and will be traversed again afterwards, any
  potential slowdown should be negligible. ]

-- Stefan

reply via email to

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