Function: vc-dir-children-marked-p
vc-dir-children-marked-p is a byte-compiled function defined in
vc-dir.el.gz.
Signature
(vc-dir-children-marked-p ARG)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
(defun vc-dir-children-marked-p (arg)
;; Non-nil iff a child of ARG is marked.
;; Return value, if non-nil, is the `ewoc-data' for the marked child.
(let* ((argdir-re (concat "\\`" (regexp-quote (vc-dir-node-directory arg))))
(is-child t)
(crt arg)
(found nil))
(while (and is-child
(null found)
(setq crt (ewoc-next vc-ewoc crt)))
(let ((data (ewoc-data crt))
(dir (vc-dir-node-directory crt)))
(if (string-match argdir-re dir)
(if (vc-dir-fileinfo->marked data)
(setq found data))
;; We are done, we got to an entry that is not a child of `arg'.
(setq is-child nil))))
found))