Function: python-imenu--put-parent

python-imenu--put-parent is a byte-compiled function defined in python.el.gz.

Signature

(python-imenu--put-parent TYPE NAME POS TREE)

Documentation

Add the parent with TYPE, NAME and POS to TREE.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-imenu--put-parent (type name pos tree)
  "Add the parent with TYPE, NAME and POS to TREE."
  (let ((label
         (funcall python-imenu-format-item-label-function type name))
        (jump-label
         (funcall python-imenu-format-parent-item-jump-label-function type name)))
    (if (not tree)
        (cons label pos)
      (cons label (cons (cons jump-label pos) tree)))))