Subject: bug#56430: [PATCH] fix broken `imenu--create-keymap` when an item is nil

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 07 Jul 2022 10:59:57 +0200

Brennan Vincent <[email-masked]> writes:

> -                `(,(intern (car item)) ,(car item)
> +                `(,(and (car item) (intern (car item))) ,(car item)
>                    ,@(cond
>                       ((imenu--subalist-p item)
>                        (imenu--create-keymap (car item) (cdr item) cmd))

In what cases is (car item) nil here?  Isn't that a bug in the caller?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no