Function: vc-checkout-model

vc-checkout-model is a byte-compiled function defined in vc-hooks.el.gz.

Signature

(vc-checkout-model BACKEND FILES)

Documentation

Indicate how FILES are checked out.

If FILES are not registered, this function always returns nil. For registered files, the possible values are:

  implicit FILES are always writable, and checked out implicitly
              when the user saves the first changes to the file.

  locking FILES are read-only if up-to-date; user must type
              C-x v v (vc-next-action) before editing. Strict locking
              is assumed.

  announce FILES are read-only if up-to-date; user must type
              C-x v v (vc-next-action) before editing. But other users
              may be editing at the same time.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-hooks.el.gz
(defun vc-checkout-model (backend files)
  "Indicate how FILES are checked out.

If FILES are not registered, this function always returns nil.
For registered files, the possible values are:

  `implicit'   FILES are always writable, and checked out `implicitly'
              when the user saves the first changes to the file.

  `locking'   FILES are read-only if up-to-date; user must type
              \\[vc-next-action] before editing.  Strict locking
              is assumed.

  `announce'  FILES are read-only if up-to-date; user must type
              \\[vc-next-action] before editing.  But other users
              may be editing at the same time."
  (vc-call-backend backend 'checkout-model files))