summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-07-18 20:57:57 +0000
committerRichard M. Stallman <rms@gnu.org>1995-07-18 20:57:57 +0000
commitdbb12f2cf894599eebec37bc08eef09366458c32 (patch)
treee8b2fee65139ed8cc47843e8b73f98dd0ce7efff /lisp
parent45fc7cc3c58ab3748b27ad9cc796560c64de4bec (diff)
downloademacs-dbb12f2cf894599eebec37bc08eef09366458c32.tar.gz
(file-name-sans-versions): Recognize version control version numbers.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index f6c0b5e9728..01705e3c57a 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1491,7 +1491,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-9]+~\\'" name)
+ (or (string-match "\\.~[0-9.]+~\\'" name)
(string-match "~\\'" name)
(length name))))))))