[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8159: file-name-sans-version fails for some git files
From: |
Reuben Thomas |
Subject: |
bug#8159: file-name-sans-version fails for some git files |
Date: |
Sat, 5 Mar 2011 16:42:40 +0000 |
On 4 March 2011 07:55, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Thu, 3 Mar 2011 22:58:14 +0000
>> From: Reuben Thomas <rrt@sc3d.org>
>> Cc: 8159@debbugs.gnu.org
>>
>> \\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\(~[[:digit:]]+\\)?~\\)
>>
>> would cope with just the git version scheme, while not swallowing
>> multiple backup suffixes.
>
> I would suggest a comment mentioning the git case with an example.
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'.")
?
--
http://rrt.sc3d.org
- bug#8159: file-name-sans-version fails for some git files, (continued)
- bug#8159: file-name-sans-version fails for some git files, Reuben Thomas, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Eli Zaretskii, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Reuben Thomas, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Andreas Schwab, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Reuben Thomas, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Andreas Schwab, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Reuben Thomas, 2011/03/03
- bug#8159: file-name-sans-version fails for some git files, Eli Zaretskii, 2011/03/04
- bug#8159: file-name-sans-version fails for some git files,
Reuben Thomas <=
- bug#8159: file-name-sans-version fails for some git files, Eli Zaretskii, 2011/03/05
- bug#8159: file-name-sans-version fails for some git files, Chong Yidong, 2011/03/05