From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Sorting Order of Completion Candidates Date: Tue, 01 Mar 2011 16:00:13 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zkpepklu.fsf@lifelogs.com> References: <4D6BB13E.3040404@miszellen.de> <87aahevm69.fsf@lifelogs.com> <87sjv6skw4.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299019285 32203 80.91.229.12 (1 Mar 2011 22:41:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 22:41:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 23:41:21 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuYFa-0007up-CB for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 23:41:20 +0100 Original-Received: from localhost ([127.0.0.1]:49800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuYFU-0006lW-At for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 17:40:56 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: news.albasani.net C/IUtnd3/04VXDBiJMLWmKkSMIR8NVZlYlCgJigcDDDHEWtplyrcYUfFUfYgNezcOqZtYwANqAm+BkmhCmoXsQ== Original-NNTP-Posting-Date: Tue, 1 Mar 2011 22:00:13 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="M54PpYN0rVfH3MjnDCFVtABXW2qp2iJ7TRDCV+6D6bZO2olmXq085ppw3o3STO3UTYegrGbkffmwfnw0FRG2UkHO4axkxuSLGpBGQYVFI104KkJc4GBRWZdaTetD/qsh"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:enc+KR30f92mZHIuMGQTOo2+1YY= sha1:y23kOOuolAkPTNfC4awMFpDTtf4= Original-Xref: usenet.stanford.edu gnu.emacs.help:185514 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79664 Archived-At: On Tue, 01 Mar 2011 21:41:11 +0100 Florian Beck wrote: FB> Hm, intuitively, I would think higher scored items come first. I mentioned that too but Stefan thought it would be more consistent with "shorter string first" this way. We can discuss it, I'm sure. FB> Anyway, I tried modifying `completion-all-sorted-completions' but it FB> had no effect, because the candidates are sorted in FB> `minibuffer-completion-help'. I guess, you will override that -- but FB> why sort there in the first place? All sorting should take place is FB> `completion-all-sorted-completions', shouldn't it? I tested only `completion-all-sorted-completions' so I didn't know about the other sort site in `minibuffer-completion-help'. Stefan knows that code far better than me so I will let him comment. FB> Also, both for reasons of performance and convenience, an option not FB> to sort candidates at all might be desirable. Obviously that doesn't apply to `completion-all-sorted-completions' whose entire purpose is to sort... But yeah, `minibuffer-completion-help' may need that adjustment. Ted