Function: vc-dir-parent-marked-p
vc-dir-parent-marked-p is a byte-compiled function defined in
vc-dir.el.gz.
Signature
(vc-dir-parent-marked-p ARG)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
(defun vc-dir-parent-marked-p (arg)
;; Non-nil iff a parent directory of arg is marked.
;; Return value, if non-nil is the `ewoc-data' for the marked parent.
(let* ((argdir (vc-dir-node-directory arg))
;; (arglen (length argdir))
(crt arg)
(found nil))
;; Go through the predecessors, checking if any directory that is
;; a parent is marked.
(while (and (null found)
(setq crt (ewoc-prev vc-ewoc crt)))
(let ((data (ewoc-data crt))
(dir (vc-dir-node-directory crt)))
(and (vc-dir-fileinfo->directory data)
(string-prefix-p dir argdir)
(vc-dir-fileinfo->marked data)
(setq found data))))
found))