all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Hansen <david.hansen@gmx.net>
To: emacs-devel@gnu.org
Subject: [patch] sort eshell glob matches
Date: Mon, 05 Nov 2007 04:08:00 +0100	[thread overview]
Message-ID: <87r6j5v17z.fsf@localhorst.mine.nu> (raw)

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 874 bytes --]

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.

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2007-11-05  3:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05  3:08 David Hansen [this message]
2007-11-06  2:16 ` [patch] sort eshell glob matches Richard Stallman
2007-11-07  3:58   ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r6j5v17z.fsf@localhorst.mine.nu \
    --to=david.hansen@gmx.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.