Fix another help-fns--insert-menu-bindings parsing problem

* lisp/help-fns.el (help-fns--insert-menu-bindings): Fix keymap
traversal when elements are symbols.
This commit is contained in:
Lars Ingebrigtsen 2022-04-28 12:16:35 +02:00
parent 3ba039dc96
commit c7d49f91da

View file

@ -592,6 +592,8 @@ the C sources, too."
(start (point)))
(seq-do-indexed
(lambda (entry level)
(when (symbolp map)
(setq map (symbol-function map)))
(when-let ((elem (assq entry (cdr map))))
(when heading
(insert heading)