From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: ordering candidates when using completion-at-point-functions Date: Thu, 04 Jul 2013 10:53:55 +0530 Message-ID: <87ip0q2904.fsf@gmail.com> References: <87wqpd2qx9.fsf@djcbsoftware.nl> <87haga9aun.fsf@djcbsoftware.nl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372915359 14153 80.91.229.3 (4 Jul 2013 05:22:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 05:22:39 +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 07:22:40 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 1Uuc07-00072v-8s for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 07:22:39 +0200 Original-Received: from localhost ([::1]:58809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuc06-0000ki-Ke for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 01:22:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uubzw-0000kc-VO for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 01:22:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uubzu-0003e6-GD for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 01:22:28 -0400 Original-Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:60106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uubzu-0003du-An for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 01:22:26 -0400 Original-Received: by mail-pd0-f175.google.com with SMTP id 4so752241pdd.34 for ; Wed, 03 Jul 2013 22:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ePpxo2OdiNV/2lKB7etS7ZkZEUAgFhSdFXj5JxKPeDE=; b=0DHEftjEjeAKHDJI1QA0LVtZsexEeUerPAb27k1pYOAN92vMlTCsTPhTiOQfYoCV32 Q6progRFkQHDrVtvLxgxA9mnTuYkZ5yxWhH+a7/8PxjG940j0RxEcC88uYB3OdBpy3b4 bb21m4ZYGnfnngUViTJ6sFmTUMPp9MdHlMB1weRH3wdnuS23lVYzkyEnDFWlco7kuD11 bJBQ++WmOiPRttT7+VHQIo2L2qDRFHBCVO2jtd24YcINkpbUP1nGcgBZPZRlvWWHEDkY s2hUSiNkKo4J3qnaLpcclTH3okltwX1SBwgz1m2kjBdfnv0de/qD786TZivw6WcMg08r bY6w== X-Received: by 10.68.162.97 with SMTP id xz1mr3923550pbb.166.1372915345625; Wed, 03 Jul 2013 22:22:25 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.199.69]) by mx.google.com with ESMTPSA id ue9sm1804601pab.7.2013.07.03.22.22.19 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 03 Jul 2013 22:22:24 -0700 (PDT) In-Reply-To: <87haga9aun.fsf@djcbsoftware.nl> (Dirk-Jan C. Binnema's message of "Thu, 04 Jul 2013 08:02:08 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22f 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:91923 Archived-At: Dirk-Jan C. Binnema writes: > That is, the results are ordered alphabetically, rather than the 1-2-3-4 > order I would like, as in my already-sorted list. I don't mean to hijack this thread. But this touches upon something I desire. I would like my completions (of command names) sorted alphabetically (but with the most recent used ones given a higher preference). The current sorting mechanism - sort by length, sort lexicographically - is confusing. The primary reason for the confusion is the difficulty in "anticipate"-ing what one is presented with. One really doesn't know how far deep down in the dictionary one is. Anyways, just a minor tangential comment.