From d2f95fcaf907bcf7c494af208429e061de821eed Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 22 Sep 2007 08:51:58 +0000 Subject: (file-name-sans-versions): Also allow `_'. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/files.el') 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)))))))) -- cgit v1.2.1