From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: ordering candidates when using completion-at-point-functions Date: Wed, 03 Jul 2013 20:32:09 -0400 Message-ID: References: <87wqpd2qx9.fsf@djcbsoftware.nl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372897949 27217 80.91.229.3 (4 Jul 2013 00:32:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 00:32:29 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "Dirk-Jan C. Binnema" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 02:32:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UuXTH-0001H0-OW for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 02:32:27 +0200 Original-Received: from localhost ([::1]:41310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuXTH-0007qw-AY for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jul 2013 20:32:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuXT7-0007qp-A5 for help-gnu-emacs@gnu.org; Wed, 03 Jul 2013 20:32:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuXT6-0002W4-Jl for help-gnu-emacs@gnu.org; Wed, 03 Jul 2013 20:32:17 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuXT6-0002Vx-GB for help-gnu-emacs@gnu.org; Wed, 03 Jul 2013 20:32:16 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r640W939015572; Wed, 3 Jul 2013 20:32:10 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 625A7AE15B; Wed, 3 Jul 2013 20:32:09 -0400 (EDT) In-Reply-To: <87wqpd2qx9.fsf@djcbsoftware.nl> (Dirk-Jan C. Binnema's message of "Sat, 29 Jun 2013 12:43:14 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4628=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4628> : streams <993624> : uri <1466234> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91921 Archived-At: > Instead, I would like to deliver the candidates in order of frequency; I What do you mean by "deliver"? > (An alternative might be to use a display-sort-function; it seems the Using display-sort-function sounds about right, yes. > current org-contacts[2] does something like that; but this seems /very/ > complicated solution, which is hopefully not necessary for my modest > needs...) Which part do you find complicated? We can probably provide some helper function to make it simpler. Stefan