Function: imenu--split-submenus
imenu--split-submenus is a byte-compiled function defined in
imenu.el.gz.
Signature
(imenu--split-submenus ALIST)
Documentation
Split up each long alist that are nested within ALIST into nested alists.
Return a split and sorted copy of ALIST. The returned alist DOES NOT share structure with ALIST.
Source Code
;; Defined in /usr/src/emacs/lisp/imenu.el.gz
(defun imenu--split-submenus (alist)
"Split up each long alist that are nested within ALIST into nested alists.
Return a split and sorted copy of ALIST. The returned alist DOES
NOT share structure with ALIST."
(mapcar (lambda (elt)
(if (imenu--subalist-p elt)
(imenu--split-menu (cdr elt) (car elt))
elt))
alist))