From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: minibuffer-completion-help, metadata and determining completions sort order Date: Sat, 18 Jun 2011 16:03:20 -0400 Message-ID: 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 1308427429 14676 80.91.229.12 (18 Jun 2011 20:03:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2011 20:03:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: tv.raman.tv@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 22:03:44 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 1QY1k6-0002aj-Hd for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 22:03:42 +0200 Original-Received: from localhost ([::1]:41365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY1k5-0003fs-7t for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 16:03:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY1jn-0003fR-Jb for emacs-devel@gnu.org; Sat, 18 Jun 2011 16:03:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QY1jl-0005jL-PP for emacs-devel@gnu.org; Sat, 18 Jun 2011 16:03:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:15756 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY1jl-0005jH-Cn for emacs-devel@gnu.org; Sat, 18 Jun 2011 16:03:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkHAOMD/U1FpYkP/2dsb2JhbABEDZgWjkh4iHO8HoMegwwEnVmEIg X-IronPort-AV: E=Sophos;i="4.65,386,1304308800"; d="scan'208";a="116604263" Original-Received: from 69-165-137-15.dsl.teksavvy.com (HELO pastel.home) ([69.165.137.15]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Jun 2011 16:03:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4CF4659010; Sat, 18 Jun 2011 16:03:20 -0400 (EDT) In-Reply-To: <19964.54886.521086.231349@gargle.gargle.HOWL> (T. V. Raman's message of "Sat, 18 Jun 2011 09:46:30 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:140661 Archived-At: > 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