diff options
| author | Stefan Monnier | 2007-08-09 14:39:20 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-08-09 14:39:20 +0000 |
| commit | 9d8f43bfbf6cda54e39a060c3626e52fed973e01 (patch) | |
| tree | 259b2297135a7739fddc3108f6bff6a5ea5758f8 | |
| parent | 2b6cdf0a7f850ad04b55296cb2e56cd8cb02a122 (diff) | |
| download | emacs-9d8f43bfbf6cda54e39a060c3626e52fed973e01.tar.gz emacs-9d8f43bfbf6cda54e39a060c3626e52fed973e01.zip | |
(vc-rcs-find-file-not-found-hook):
Move from vc-default-find-file-not-found-hook.
| -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 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 |