]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix another help-fns--insert-menu-bindings parsing problem
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 28 Apr 2022 10:16:35 +0000 (12:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 28 Apr 2022 10:16:35 +0000 (12:16 +0200)
* lisp/help-fns.el (help-fns--insert-menu-bindings): Fix keymap
traversal when elements are symbols.

lisp/help-fns.el

index 9a6225d8589db2cab58089d07419a901ab1844df..0cb2c6d5d77d81388bca1364adf58f919f0d74fd 100644 (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)