Mercurial > emacs
changeset 85953:9e350f92b40d
David Hansen <david.hansen at gmx.net>
(eshell-extended-glob): Sort matches.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 07 Nov 2007 03:56:57 +0000 |
parents | 9bb0a271c2eb |
children | 2fa6ffac861c |
files | lisp/eshell/em-glob.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/eshell/em-glob.el Wed Nov 07 03:46:22 2007 +0000 +++ b/lisp/eshell/em-glob.el Wed Nov 07 03:56:57 2007 +0000 @@ -258,7 +258,7 @@ (eshell-glob-entries (file-name-as-directory ".") paths)) (if message-shown (message nil))) - (or (and matches (nreverse matches)) + (or (and matches (sort matches #'string<)) (if eshell-error-if-no-glob (error "No matches found: %s" glob) glob))))