diff options
| author | André Spiegel <spiegel@gnu.org> | 2000-10-27 13:26:18 +0000 |
|---|---|---|
| committer | André Spiegel <spiegel@gnu.org> | 2000-10-27 13:26:18 +0000 |
| commit | 48b15d3f46cce9a5806e1c44c1634257112794fa (patch) | |
| tree | c55ebeb899f6762fc59c6eaeeb1536132d83ac00 | |
| parent | aa6a7cf251768b802725f2a70b26202b8f4d42e1 (diff) | |
| download | emacs-48b15d3f46cce9a5806e1c44c1634257112794fa.tar.gz | |
(vc-make-version-backup): Don't do it on MS-DOS without long file
names.
| -rw-r--r-- | lisp/vc-hooks.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index e65b1baaa76..d3ac6517187 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -5,7 +5,7 @@ ;; Author: FSF (see vc.el for full credits) ;; Maintainer: Andre Spiegel <spiegel@gnu.org> -;; $Id: vc-hooks.el,v 1.124 2000/10/22 15:28:58 spiegel Exp $ +;; $Id: vc-hooks.el,v 1.125 2000/10/27 12:11:55 spiegel Exp $ ;; This file is part of GNU Emacs. @@ -488,9 +488,11 @@ a regexp for matching all such backup files, regardless of the version." (defun vc-make-version-backup (file) "Make a backup copy of FILE, which is assumed in sync with the repository. Before doing that, check if there are any old backups and get rid of them." - (vc-delete-automatic-version-backups file) - (copy-file file (vc-version-backup-file-name file) - nil 'keep-date)) + (unless (and (fboundp 'msdos-long-file-names) + (not (msdos-long-file-names))) + (vc-delete-automatic-version-backups file) + (copy-file file (vc-version-backup-file-name file) + nil 'keep-date))) (defun vc-before-save () "Function to be called by `basic-save-buffer' (in files.el)." |
