diff options
author | Andreas Schwab <schwab@suse.de> | 2007-09-22 08:51:58 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2007-09-22 08:51:58 +0000 |
commit | d2f95fcaf907bcf7c494af208429e061de821eed (patch) | |
tree | b96cdb9eaf7d11994438f89b65b32386acc6f19a /lisp/files.el | |
parent | 257c97151c744740af63b5098b914803d4d9384a (diff) | |
download | emacs-d2f95fcaf907bcf7c494af208429e061de821eed.tar.gz |
(file-name-sans-versions): Also allow `_'.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 17b4a6504db..bf7d34e2227 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3188,7 +3188,7 @@ we do not remove backup version numbers, only true file version numbers." (length name)) (if keep-backup-version (length name) - (or (string-match "\\.~[-0-9a-z.]+~\\'" name) + (or (string-match "\\.~[-0-9a-z._]+~\\'" name) (string-match "~\\'" name) (length name)))))))) |