diff options
| -rw-r--r-- | lisp/help.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el index 40d8521e7dc..957a0fc637f 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -646,6 +646,18 @@ It can also be nil, if the definition is not associated with any file." | |||
| 646 | (if (eq (nth 4 def) 'keymap) "keymap" | 646 | (if (eq (nth 4 def) 'keymap) "keymap" |
| 647 | (if (nth 4 def) "Lisp macro" "Lisp function")) | 647 | (if (nth 4 def) "Lisp macro" "Lisp function")) |
| 648 | )) | 648 | )) |
| 649 | ;; perhaps use keymapp here instead | ||
| 650 | ((eq (car-safe def) 'keymap) | ||
| 651 | (let ((is-full nil) | ||
| 652 | (elts (cdr-safe def))) | ||
| 653 | (while elts | ||
| 654 | (if (char-table-p (car-safe elts)) | ||
| 655 | (setq is-full t | ||
| 656 | elts nil)) | ||
| 657 | (setq elts (cdr-safe elts))) | ||
| 658 | (if is-full | ||
| 659 | "a full keymap" | ||
| 660 | "a sparse keymap"))) | ||
| 649 | (t ""))) | 661 | (t ""))) |
| 650 | (when (and parens (not (equal string ""))) | 662 | (when (and parens (not (equal string ""))) |
| 651 | (setq need-close t) | 663 | (setq need-close t) |