[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: Sun, 19 Jun 2011 21:42:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Stefan, So the metadata gets placed as a property on the table?

No, the table has to be a function (completion tables can be
represented in many different ways: hash-table, obarray, list, alist,
and function).
Take a look at `completion-metadata' to see how the metadata
is extracted (the Lisp manual still doesn't have the corresponding
description :-( ).

> Also I said the list would get traversed even if the sort
> function was identity because the code does a funcall of the sort
> function provided, but perhaps that's not a big issue.

The "sort function" doesn't have to sort, it just takes a list and must
return a list, it can return the list it receives without looking at it,
as is the case if that function is `identity'.


reply via email to

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