[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] sort eshell glob matches
From: |
David Hansen |
Subject: |
[patch] sort eshell glob matches |
Date: |
Mon, 05 Nov 2007 04:08:00 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Hello,
I'm using this patch now for several months w/o problems. I was a bit
annoyed that `ogg123 *' played the songs in 'random' and not
alphabetical order like w/ bash globing. I can make it customizable if
anyone sees a need for it.
David
Index: em-glob.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/eshell/em-glob.el,v
retrieving revision 1.22
diff -c -r1.22 em-glob.el
*** em-glob.el 26 Jul 2007 05:26:53 -0000 1.22
--- em-glob.el 5 Nov 2007 03:02:32 -0000
***************
*** 258,264 ****
(eshell-glob-entries (file-name-as-directory ".") paths))
(if message-shown
(message nil)))
! (or (and matches (nreverse matches))
(if eshell-error-if-no-glob
(error "No matches found: %s" glob)
glob))))
--- 258,264 ----
(eshell-glob-entries (file-name-as-directory ".") paths))
(if message-shown
(message nil)))
! (or (and matches (sort matches #'string<))
(if eshell-error-if-no-glob
(error "No matches found: %s" glob)
glob))))
Diffs between working revision and workfile end here.
- [patch] sort eshell glob matches,
David Hansen <=