[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21284: 25.0.50; `completion-file-name-table' should/not use `nrevers
From: |
Eli Zaretskii |
Subject: |
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@lawlist.com>
> Cc: 21284@debbugs.gnu.org,Noam Postavsky
> <npostavs@users.sourceforge.net>,Marcin Borkowski <mbork@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.