summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorAndré Spiegel <spiegel@gnu.org>2003-07-26 13:05:10 +0000
committerAndré Spiegel <spiegel@gnu.org>2003-07-26 13:05:10 +0000
commit3756d48129ee8d054b3d452668d6feb88ba471d8 (patch)
treee7a579788c834f054db429f34f26414c853c7009 /lisp/vc-hooks.el
parent53e89326a11345c28e6962b205af3bdce6cbf515 (diff)
downloademacs-3756d48129ee8d054b3d452668d6feb88ba471d8.tar.gz
(vc-default-registered, vc-make-version-backup): Use with-no-warnings.
(vc-file-not-found-hook): Add this to find-file-not-found-functions, rather than to find-file-not-found-hook, which doesn't exist.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 7eecaa25fd3..6ad999b3e66 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -6,7 +6,7 @@
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-hooks.el,v 1.152 2003/06/05 11:34:06 fx Exp $
+;; $Id: vc-hooks.el,v 1.153 2003/07/06 17:26:48 monnier Exp $
;; This file is part of GNU Emacs.
@@ -478,7 +478,8 @@ If FILE is not registered, this function always returns nil."
(and (consp template)
(eq (cdr template) backend)
(car template)))
- vc-master-templates))
+ (with-no-warnings
+ vc-master-templates)))
(symbol-value sym))))
(let ((result (vc-check-master-templates file (symbol-value sym))))
(if (stringp result)
@@ -582,7 +583,7 @@ a regexp for matching all such backup files, regardless of the version."
"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."
(unless (and (fboundp 'msdos-long-file-names)
- (not (msdos-long-file-names)))
+ (not (with-no-warnings msdos-long-file-names)))
(vc-delete-automatic-version-backups file)
(copy-file file (vc-version-backup-file-name file)
nil 'keep-date)))
@@ -754,7 +755,7 @@ Used in `find-file-not-found-hook'."
(setq default-directory (file-name-directory buffer-file-name))
(not (vc-error-occurred (vc-checkout buffer-file-name))))))
-(add-hook 'find-file-not-found-hook 'vc-file-not-found-hook)
+(add-hook 'find-file-not-found-functions 'vc-file-not-found-hook)
(defun vc-kill-buffer-hook ()
"Discard VC info about a file when we kill its buffer."