1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

(file-name-sans-versions): Also allow `_'.

This commit is contained in:
Andreas Schwab 2007-09-22 08:51:58 +00:00
parent 257c97151c
commit d2f95fcaf9
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-09-22 Andreas Schwab <schwab@suse.de>
* files.el (file-name-sans-versions): Also allow `_'.
2007-09-22 Glenn Morris <rgm@gnu.org>
* eshell/esh-mode.el (eshell-output-filter-functions): Add

View File

@ -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))))))))