GNU bug report logs - #8159
file-name-sans-version fails for some git files

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Wed, 2 Mar 2011 22:32:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #59 received at 8159 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: schwab <at> linux-m68k.org, 8159 <at> debbugs.gnu.org, Reuben Thomas <rrt <at> sc3d.org>
Subject: Re: bug#8159: file-name-sans-version fails for some git files
Date: Sat, 05 Mar 2011 15:36:07 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>> So, something like:
>>
>> (defvar file-name-version-regexp
>>   "\\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\(~[[:digit:]]+\\)?~\\)"
>>   ;; The optional ~[[:digit]]+ matches relative versions in git like `HEAD~2'
>>   "Regular expression matching the backup/version part of a file name.
>> Used by `file-name-sans-versions'.")
>
> Yes, that's fine.  Thanks.

Committed to trunk.




This bug report was last modified 14 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.