GNU bug report logs - #21284
eshell does not sort completion candidates

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Mon, 17 Aug 2015 18:08:01 UTC

Severity: minor

Tags: moreinfo

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 21284 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: mbork <at> mbork.pl, 21284 <at> debbugs.gnu.org, npostavs <at> users.sourceforge.net
Subject: Re: bug#21284: 25.0.50;
 `completion-file-name-table' should/not use `nreverse'?
Date: Mon, 06 Jun 2016 21:50:05 +0300
> Date:  Mon, 06 Jun 2016 09:19:07 -0700
> From:  Keith David Bershatsky <esq <at> lawlist.com>
> Cc:  21284 <at> debbugs.gnu.org,Noam Postavsky <npostavs <at> users.sourceforge.net>,Marcin Borkowski <mbork <at> mbork.pl>
> 
> I am on OS X and the default sort order is alphabetic, which gets reversed by `completion-file-name-table` because it uses `nreverse'.

Then what exactly is the problem here?  Emacs doesn't know in what
order the files are returned, it considers the order random.
Reversing a randomly ordered list produces another randomly ordered
list.  Applications that need to present the list in some specific
order need to do that explicitly.  For example, "C-x C-f TAB TAB" does
display the files in alphabetic order for me, not in reverse
alphabetic order.




This bug report was last modified 3 years and 69 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.