diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2009-06-26 23:53:55 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2009-06-26 23:53:55 +0000 |
commit | 3c3bf6ce8fb1f31177db297dc70bfae25cca552a (patch) | |
tree | b78c6c8d9914e01175254a9e9cb4be1c1fbeeddf /lisp/vc-hooks.el | |
parent | 297710942213ef3bf4a06190459bbc1fb0362ffb (diff) | |
download | emacs-3c3bf6ce8fb1f31177db297dc70bfae25cca552a.tar.gz |
Remove find-file-not-found-hook VC method. (Bug#2757)
* vc-hooks.el (vc-file-not-found-hook)
(vc-default-find-file-not-found-hook): Remove functions.
(find-file-not-found-functions): Do not add vc-file-not-found-hook.
* vc-rcs.el (vc-rcs-find-file-not-found-hook): Remove function.
* vc.el:
* vc-hg.el:
* vc-git.el: Do not mention find-file-not-found-hook VC method.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r-- | lisp/vc-hooks.el | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 83d89027f8f..d35471a4738 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -911,27 +911,6 @@ current, and kill the buffer that visits the link." (add-hook 'find-file-hook 'vc-find-file-hook) -;; more hooks, this time for file-not-found -(defun vc-file-not-found-hook () - "When file is not found, try to check it out from version control. -Returns t if checkout was successful, nil otherwise. -Used in `find-file-not-found-functions'." - ;; When a file does not exist, ignore cached info about it - ;; from a previous visit. - ;; We check that `buffer-file-name' is non-nil. It should be always - ;; the case, but in conjunction with Tramp, it might be nil. M. Albinus. - (when buffer-file-name - (vc-file-clearprops buffer-file-name) - (let ((backend (vc-backend buffer-file-name))) - (when backend (vc-call-backend backend 'find-file-not-found-hook))))) - -(defun vc-default-find-file-not-found-hook (backend) - ;; This used to do what vc-rcs-find-file-not-found-hook does, but it only - ;; really makes sense for RCS. For other backends, better not do anything. - nil) - -(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." (when buffer-file-name (vc-file-clearprops buffer-file-name))) |