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
On 2015-08-17, at 10:25, Keith David Bershatsky <esq <at> lawlist.com> wrote:
> The function `completion-file-name-table' uses `(setq all (nreverse comp))' instead of `(setq all comp)'.
>
> This has the effect of reversing what was accomplished when `pcomplete-compare-entry-function' is set to `'string-lessp'.
>
> In a nutshell, the completions are in reverse alphabetical order as a result of `(setq all (nreverse comp))'.
>
> This was tested in an eshell buffer by typing at a prompt: rm [space tab]; and, with `lawlist-eshell-cmpl-compare-entry-function` set to `'string-lessp'.
Hi,
I tried to reproduce it on GNU Emacs 25.1.50.9 (commit fafdfcb) and
failed. However, I'm not sure whether I understood your report
correctly. My Emacs doesn't seem to have
`lawlist-eshell-cmpl-compare-entry-function', only
`eshell-cmpl-compare-entry-function'. Did you mean that variable?
I tried to set it to `'string-lessp', but nothing seemed to change after
"rm [space] [tab]" in Eshell.
> Thanks,
>
> Keith
Best,
--
Marcin
This bug report was last modified 3 years and 68 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.