Mercurial > emacs
changeset 43725:60a9d71aad02
(vc-transfer-file): Use `make-temp-file' instead of `make-temp-name'.
(vc-default-update-changelog): Remove conditional use of
`make-temp-name'.
author | André Spiegel <spiegel@gnu.org> |
---|---|
date | Tue, 05 Mar 2002 13:14:11 +0000 |
parents | 16affaf7292b |
children | 6e4bed6ddee1 |
files | lisp/vc.el |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc.el Tue Mar 05 11:42:46 2002 +0000 +++ b/lisp/vc.el Tue Mar 05 13:14:11 2002 +0000 @@ -6,7 +6,7 @@ ;; Maintainer: Andre Spiegel <spiegel@gnu.org> ;; Keywords: tools -;; $Id: vc.el,v 1.328 2002/02/28 09:59:08 spiegel Exp $ +;; $Id: vc.el,v 1.329 2002/02/28 13:01:48 spiegel Exp $ ;; This file is part of GNU Emacs. @@ -2739,13 +2739,13 @@ ;; `registered' might have switched under us. (vc-switch-backend file old-backend) (let* ((rev (vc-workfile-version file)) - (modified-file (and edited (make-temp-name file))) + (modified-file (and edited (make-temp-file file))) (unmodified-file (and modified-file (vc-version-backup-file file)))) ;; Go back to the base unmodified file. (unwind-protect (progn (when modified-file - (copy-file file modified-file) + (copy-file file modified-file 'ok-if-already-exists) ;; If we have a local copy of the unmodified file, handle that ;; here and not in vc-revert-file because we don't want to ;; delete that copy -- it is still useful for OLD-BACKEND. @@ -2886,8 +2886,7 @@ (let ((odefault default-directory) (changelog (find-change-log)) ;; Presumably not portable to non-Unixy systems, along with rcs2log: - (tempfile (funcall - (if (fboundp 'make-temp-file) 'make-temp-file 'make-temp-name) + (tempfile (make-temp-file (expand-file-name "vc" (or small-temporary-file-directory temporary-file-directory))))