From: florian@fsavigny.de (Florian v. Savigny)
To: Sean McAfee <eefacm@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Is there a function to sort file names by file version number, like "ls -v"?
Date: Fri, 24 May 2013 11:07:21 -0400 [thread overview]
Message-ID: <E1UftaO-0008Pd-NB@eggs.gnu.org> (raw)
In-Reply-To: <bp8a9nlsaop.fsf@usca1uw-JZWWPM1.sanmateo.corp.akamai.com> (message from Sean McAfee on Thu, 23 May 2013 13:28:22 -0700)
Hi Sean,
> If it's not clear, the parse routine I defined takes a filename as
> an argument, and returns a cons cell that contains the decomposed
> contents of the name. A name with a tilde-delimited version
> suffix, like say "foo~5~", is transformed into ("foo" . 5), and a
> name without such a suffix, like say "bar", becomes just ("bar"
> . nil). The main body of versioned-filename-lessp just compares
> two such decompositions.
Sorry ... before I read that, I had already had edebug-defun walk me
through the process, which showed me without thinking how it
works. Thanks very much - you actually tought me a /general/ method
for sorting things!
Best regards,
Florian
next prev parent reply other threads:[~2013-05-24 15:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.229.1369297314.22516.help-gnu-emacs@gnu.org>
2013-05-23 18:33 ` Is there a function to sort file names by file version number, like "ls -v"? Sean McAfee
2013-05-23 20:01 ` Florian v. Savigny
[not found] ` <mailman.283.1369339299.22516.help-gnu-emacs@gnu.org>
2013-05-23 20:18 ` Pascal J. Bourguignon
2013-05-23 20:28 ` Sean McAfee
2013-05-24 15:07 ` Florian v. Savigny [this message]
2013-05-23 8:21 Florian v. Savigny
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=E1UftaO-0008Pd-NB@eggs.gnu.org \
--to=florian@fsavigny.de \
--cc=eefacm@gmail.com \
--cc=help-gnu-emacs@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.