From: Po Lu <luangruo@yahoo.com>
Date: Thu, 20 Jan 2022 12:18:29 +0000 (+0800)
Subject: Fix error when describing menu items that don't have equivalent keys
X-Git-Tag: emacs-29.0.90~2901
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec5c723844a56d43c7c82aa9a2eecf1ffca86c0b;p=emacs.git

Fix error when describing menu items that don't have equivalent keys

* lisp/help-fns.el (help-fns--key-bindings): Never pass nil to
insert.
---

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 7858d88985f..98a1b11e088 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -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)