diff options
| author | Po Lu | 2022-01-20 20:18:29 +0800 |
|---|---|---|
| committer | Po Lu | 2022-01-20 20:18:29 +0800 |
| commit | ec5c723844a56d43c7c82aa9a2eecf1ffca86c0b (patch) | |
| tree | af238bebdc0e4f26d9e67822c9a873045ffc7c96 | |
| parent | 5a64286d6a3ceaa5ca114ba5987f6698189647f5 (diff) | |
| download | emacs-ec5c723844a56d43c7c82aa9a2eecf1ffca86c0b.tar.gz emacs-ec5c723844a56d43c7c82aa9a2eecf1ffca86c0b.zip | |
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.
| -rw-r--r-- | lisp/help-fns.el | 6 |
1 files changed, 3 insertions, 3 deletions
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." | |||
| 547 | (insert "\n")) | 547 | (insert "\n")) |
| 548 | (when menus | 548 | (when menus |
| 549 | (let ((start (point))) | 549 | (let ((start (point))) |
| 550 | (insert "It can " | 550 | (insert (concat "It can " |
| 551 | (and keys "also ") | 551 | (and keys "also ") |
| 552 | "be invoked from the menu: ") | 552 | "be invoked from the menu: ")) |
| 553 | ;; FIXME: Should insert menu names instead of key | 553 | ;; FIXME: Should insert menu names instead of key |
| 554 | ;; binding names. | 554 | ;; binding names. |
| 555 | (help-fns--insert-bindings menus) | 555 | (help-fns--insert-bindings menus) |