GNU bug report logs -
#21284
eshell does not sort completion candidates
Previous Next
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
View this message in rfc822 format
tag 21284 - unreproducible
severity 21284 minor
quit
On Mon, Jun 6, 2016 at 10:43 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> I suspect that there's a hidden factor here: the order in which the
> 'readdir' libc function returns the directory entries. On GNU/Linux,
> the order is arbitrary (AFAIK, it's the order of the entries in the
> directory file). On MS-Windows, the order is alphabetic, so reversing
> will produce the reverse alphabetic order. I don't know what happens
> on OS X.
Oh yeah, I see reversed order on Windows.
On Mon, Jun 6, 2016 at 12:19 PM, Keith David Bershatsky <esq <at> lawlist.com> wrote:
> I am on OS X and the default sort order is alphabetic, which gets reversed by `completion-file-name-table` because it uses `nreverse'.
Actually, the result from `file-name-all-completions` is already
reversed. `completion-file-name-table` then reverses it twice: once in
the loop (dolist (tem all) (... (push tem comp))), and the `nreverse`
call to undo it.
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.