Function: org-list-has-child-p

org-list-has-child-p is a byte-compiled function defined in org-list.el.gz.

Signature

(org-list-has-child-p ITEM STRUCT)

Documentation

Non-nil if ITEM has a child.

STRUCT is the list structure.

Value returned is the position of the first child of ITEM.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-list.el.gz
(defun org-list-has-child-p (item struct)
  "Non-nil if ITEM has a child.

STRUCT is the list structure.

Value returned is the position of the first child of ITEM."
  (let ((ind (org-list-get-ind item struct))
	(child-maybe (car (nth 1 (member (assq item struct) struct)))))
    (when (and child-maybe
	       (< ind (org-list-get-ind child-maybe struct)))
      child-maybe)))