From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: minibuffer-completion-help, metadata and determining completions sort order Date: Sat, 18 Jun 2011 19:23:51 +0200 Message-ID: <87boxvvys8.fsf@gmail.com> References: <19964.54886.521086.231349@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308417881 1203 80.91.229.12 (18 Jun 2011 17:24:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2011 17:24:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 19:24:38 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXzG9-0006e9-Uu for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 19:24:38 +0200 Original-Received: from localhost ([::1]:53633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXzG9-0003Au-5N for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 13:24:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXzFq-0003AM-Ee for emacs-devel@gnu.org; Sat, 18 Jun 2011 13:24:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXzFg-00067U-4f for emacs-devel@gnu.org; Sat, 18 Jun 2011 13:24:17 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXzFf-00066e-KU for emacs-devel@gnu.org; Sat, 18 Jun 2011 13:24:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXzFb-0006Ou-Ii for emacs-devel@gnu.org; Sat, 18 Jun 2011 19:24:03 +0200 Original-Received: from 113.211.85.79.rev.sfr.net ([79.85.211.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jun 2011 19:24:03 +0200 Original-Received: from thierry.volpiatto by 113.211.85.79.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jun 2011 19:24:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 113.211.85.79.rev.sfr.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:usuJIlIwC5KrUHxsBQFXiL3Vfe0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140655 Archived-At: "T. V. Raman" writes: > I'm having a hard time understanding how one provides custom > metadata to completion-all-completions and friends. Also, looking > at the code in minibuffer-completions-help, I see that the > metadata can provide a custom sort function -- sounds > good. However the specific use case I want is the ability to not > sort the completions -- Ineed this for implementing Google > Suggest in the minibuffer. I had asked about this many moons ago > and Stefane had said that the code in minibuffer.el would be > changing to support this, assuming the metadata functionality is > to address that and other use cases? Anyway, I'd like the > ability to be able to set things up for Google Suggest so the > completions list goes through unmolested, and as things stand, > Isuppose I could provide a no-op sorter once I figure out to > supply the metadata; however that still feels wasteful since we > would end up traversing the list of completions for no reason --- > there is no option to avoid the sort call in minibuffer-completions-help BTW Anything have already google suggestions. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997