diff options
author | Miles Bader <miles@gnu.org> | 2007-08-13 13:41:28 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-08-13 13:41:28 +0000 |
commit | 37cc095b6a175fb5a2fb18fa029eaf3aa3b3fa53 (patch) | |
tree | 7fb68e80f66e55100c48b9751cf70c74af2d4bf1 /lisp/vc-rcs.el | |
parent | 031b6333283be57d971e557b83da31c6be937b0a (diff) | |
parent | 9d2db4c6637fe37d75f947063bcb2ecce319a1bc (diff) | |
download | emacs-37cc095b6a175fb5a2fb18fa029eaf3aa3b3fa53.tar.gz |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
Diffstat (limited to 'lisp/vc-rcs.el')
-rw-r--r-- | lisp/vc-rcs.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index dcd3adcd8c9..1cda8849219 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.el @@ -234,6 +234,14 @@ When VERSION is given, perform check for that version." ;; The workfile is unchanged if rcsdiff found no differences. (zerop status))) +(defun vc-rcs-find-file-not-found-hook () + (if (yes-or-no-p + (format "File %s was lost; check out from version control? " + (file-name-nondirectory buffer-file-name))) + (save-excursion + (require 'vc) + (let ((default-directory (file-name-directory buffer-file-name))) + (not (vc-error-occurred (vc-checkout buffer-file-name))))))) ;;; ;;; State-changing functions |