]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix error when describing menu items that don't have equivalent keys
authorPo Lu <luangruo@yahoo.com>
Thu, 20 Jan 2022 12:18:29 +0000 (20:18 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 20 Jan 2022 12:18:29 +0000 (20:18 +0800)
* lisp/help-fns.el (help-fns--key-bindings): Never pass nil to
insert.

lisp/help-fns.el

index 7858d88985f071929477d99fae4b49b03962009a..98a1b11e088d515611c93835736b629210460d0b 100644 (file)
@@ -547,9 +547,9 @@ suitable file is found, return nil."
               (insert "\n"))
             (when menus
               (let ((start (point)))
-                (insert "It can "
-                        (and keys "also ")
-                        "be invoked from the menu: ")
+                (insert (concat "It can "
+                                (and keys "also ")
+                                "be invoked from the menu: "))
                 ;; FIXME: Should insert menu names instead of key
                 ;; binding names.
                 (help-fns--insert-bindings menus)