comparison lisp/vc-hooks.el @ 52385:c114a41b1a70

(vc-make-version-backup): Fix the change made on 2003-07-26: msdos-long-file-names is a function, not a variable.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 30 Aug 2003 10:56:38 +0000
parents 15340592804c
children 695cf19ef79e
comparison
equal deleted inserted replaced
52384:d7624ada9a94 52385:c114a41b1a70
4 ;; Free Software Foundation, Inc. 4 ;; Free Software Foundation, Inc.
5 5
6 ;; Author: FSF (see vc.el for full credits) 6 ;; Author: FSF (see vc.el for full credits)
7 ;; Maintainer: Andre Spiegel <spiegel@gnu.org> 7 ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
8 8
9 ;; $Id: vc-hooks.el,v 1.157 2003/08/23 10:06:29 spiegel Exp $ 9 ;; $Id: vc-hooks.el,v 1.158 2003/08/23 23:04:20 rost Exp $
10 10
11 ;; This file is part of GNU Emacs. 11 ;; This file is part of GNU Emacs.
12 12
13 ;; GNU Emacs is free software; you can redistribute it and/or modify 13 ;; GNU Emacs is free software; you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by 14 ;; it under the terms of the GNU General Public License as published by
587 587
588 (defun vc-make-version-backup (file) 588 (defun vc-make-version-backup (file)
589 "Make a backup copy of FILE, which is assumed in sync with the repository. 589 "Make a backup copy of FILE, which is assumed in sync with the repository.
590 Before doing that, check if there are any old backups and get rid of them." 590 Before doing that, check if there are any old backups and get rid of them."
591 (unless (and (fboundp 'msdos-long-file-names) 591 (unless (and (fboundp 'msdos-long-file-names)
592 (not (with-no-warnings msdos-long-file-names))) 592 (not (with-no-warnings (msdos-long-file-names))))
593 (vc-delete-automatic-version-backups file) 593 (vc-delete-automatic-version-backups file)
594 (copy-file file (vc-version-backup-file-name file) 594 (copy-file file (vc-version-backup-file-name file)
595 nil 'keep-date))) 595 nil 'keep-date)))
596 596
597 (defun vc-before-save () 597 (defun vc-before-save ()