From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: minibuffer-completion-help, metadata and determining completions sort order
Date: Sun, 19 Jun 2011 09:32:34 -0700 [thread overview]
Message-ID: <BANLkTi=Cfew_27-hUtwE2bQjXLFz1gcy8g@mail.gmail.com> (raw)
In-Reply-To: <jwvmxheoqnv.fsf-monnier+emacs@gnu.org>
Stefan, So the metadata gets placed as a property on the table?
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. Some
examples on providing metadata would really help -- I've never
fully understood the completions code -- especially with respect
to the table and mode arguments.
--
Best Regards,
--raman
On 6/18/11, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 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
>
next prev parent reply other threads:[~2011-06-19 16:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-18 16:46 minibuffer-completion-help, metadata and determining completions sort order T. V. Raman
2011-06-18 17:23 ` Thierry Volpiatto
2011-06-18 20:03 ` Stefan Monnier
2011-06-19 16:32 ` T.V. Raman [this message]
2011-06-20 1:42 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2011-06-18 20:01 raman
2011-06-18 20:15 ` Thierry Volpiatto
2011-06-19 16:33 raman
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='BANLkTi=Cfew_27-hUtwE2bQjXLFz1gcy8g@mail.gmail.com' \
--to=tv.raman.tv@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.