Function: cvs-buffer-check
cvs-buffer-check is a byte-compiled function defined in pcvs.el.gz.
Signature
(cvs-buffer-check)
Documentation
Check that the current buffer follows cvs-buffer's conventions.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/pcvs.el.gz
(defun cvs-buffer-check ()
"Check that the current buffer follows cvs-buffer's conventions."
(let ((buf (current-buffer))
(check 'none))
(or (and (setq check 'collection)
(eq (ewoc-buffer cvs-cookies) buf)
(setq check 'cvs-temp-buffer)
(or (null cvs-temp-buffer)
(null (buffer-live-p cvs-temp-buffer))
(and (eq (with-current-buffer cvs-temp-buffer cvs-buffer) buf)
(equal (with-current-buffer cvs-temp-buffer
default-directory)
default-directory)))
t)
(error "Inconsistent %s in buffer %s" check (buffer-name buf)))))