Mercurial > emacs
changeset 52051:3507a2fac9b5
(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.
author | André Spiegel <spiegel@gnu.org> |
---|---|
date | Sat, 26 Jul 2003 13:05:10 +0000 |
parents | dc09d3ca033d |
children | 2af83e784537 |
files | lisp/vc-hooks.el |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc-hooks.el Sat Jul 26 07:41:08 2003 +0000 +++ b/lisp/vc-hooks.el Sat Jul 26 13:05:10 2003 +0000 @@ -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 @@ (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 @@ "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 @@ (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."