aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc-rcs.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el
index d73f8522115..b341f82a73b 100644
--- a/lisp/vc-rcs.el
+++ b/lisp/vc-rcs.el
@@ -225,6 +225,14 @@ When VERSION is given, perform check for that version."
225 ;; The workfile is unchanged if rcsdiff found no differences. 225 ;; The workfile is unchanged if rcsdiff found no differences.
226 (zerop status))) 226 (zerop status)))
227 227
228(defun vc-rcs-find-file-not-found-hook ()
229 (if (yes-or-no-p
230 (format "File %s was lost; check out from version control? "
231 (file-name-nondirectory buffer-file-name)))
232 (save-excursion
233 (require 'vc)
234 (let ((default-directory (file-name-directory buffer-file-name)))
235 (not (vc-error-occurred (vc-checkout buffer-file-name)))))))
228 236
229;;; 237;;;
230;;; State-changing functions 238;;; State-changing functions