Function: vc-editable-p
vc-editable-p is a byte-compiled function defined in vc.el.gz.
Signature
(vc-editable-p FILE)
Documentation
Return non-nil if FILE can be edited.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;; Support for the C-x v v command.
;; This is where all the single-file-oriented code from before the fileset
;; rewrite lives.
(defsubst vc-editable-p (file)
"Return non-nil if FILE can be edited."
(let ((backend (vc-backend file)))
(and backend
(or (eq (vc-checkout-model backend (list file)) 'implicit)
(memq (vc-state file) '(edited needs-merge conflict))))))