Function: cvs-mode-mark
cvs-mode-mark is an interactive and byte-compiled function defined in
pcvs.el.gz.
Signature
(cvs-mode-mark &optional ARG)
Documentation
Mark the fileinfo on the current line.
If the fileinfo is a directory, all the contents of that directory are marked instead. A directory can never be marked.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/pcvs.el.gz
;;;;
;;;; Mark handling
;;;;
(defun-cvs-mode cvs-mode-mark (&optional arg)
"Mark the fileinfo on the current line.
If the fileinfo is a directory, all the contents of that directory are
marked instead. A directory can never be marked."
(interactive)
(let* ((tin (ewoc-locate cvs-cookies))
(fi (ewoc-data tin)))
(if (eq (cvs-fileinfo->type fi) 'DIRCHANGE)
;; it's a directory: let's mark all files inside
(ewoc-map
(lambda (f dir)
(when (cvs-dir-member-p f dir)
(setf (cvs-fileinfo->marked f)
(not (if (eq arg 'toggle) (cvs-fileinfo->marked f) arg)))
t)) ;Tell cookie to redisplay this cookie.
cvs-cookies
(cvs-fileinfo->dir fi))
;; not a directory: just do the obvious
(setf (cvs-fileinfo->marked fi)
(not (if (eq arg 'toggle) (cvs-fileinfo->marked fi) arg)))
(ewoc-invalidate cvs-cookies tin)
(cvs-mode-next-line 1))))