[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a function to sort file names by file version number, like
From: |
Florian v. Savigny |
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 |
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