aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/imenu.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r--lisp/imenu.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 4686d1cf538..1d3da2db15b 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -546,9 +546,7 @@ The returned alist DOES NOT share structure with MENULIST."
546Return a split and sorted copy of ALIST. The returned alist DOES 546Return a split and sorted copy of ALIST. The returned alist DOES
547NOT share structure with ALIST." 547NOT share structure with ALIST."
548 (mapcar (lambda (elt) 548 (mapcar (lambda (elt)
549 (if (and (consp elt) 549 (if (imenu--subalist-p elt)
550 (stringp (car elt))
551 (listp (cdr elt)))
552 (imenu--split-menu (cdr elt) (car elt)) 550 (imenu--split-menu (cdr elt) (car elt))
553 elt)) 551 elt))
554 alist)) 552 alist))