From: Glenn Morris Date: Wed, 7 Nov 2007 03:57:06 +0000 (+0000) Subject: David Hansen X-Git-Tag: emacs-pretest-23.0.90~9845 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=53afc6860d4eb275bf4739a1b573b6511d41d485;p=emacs.git David Hansen (eshell-extended-glob): Sort matches. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7622873361d..ba0db896abf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2007-11-07 David Hansen + + * eshell/em-glob.el (eshell-extended-glob): Sort matches. + 2007-11-07 Glenn Morris * emulation/tpu-mapper.el (tpu-map-key): Use unless rather than cond. diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el index 5d68fdf9437..b1d8736b860 100644 --- a/lisp/eshell/em-glob.el +++ b/lisp/eshell/em-glob.el @@ -258,7 +258,7 @@ the form: (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))))