diff options
| author | Richard M. Stallman | 1999-09-08 07:41:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-09-08 07:41:52 +0000 |
| commit | b89d72a18a7211ffb0ffd25c2b423dd553f4cc5f (patch) | |
| tree | b8dd0c720058607f29d524f25848d1f4b5a536e4 | |
| parent | 2cb28a6046084caa7d9e21d717b555f71b4c1a88 (diff) | |
| download | emacs-b89d72a18a7211ffb0ffd25c2b423dd553f4cc5f.tar.gz emacs-b89d72a18a7211ffb0ffd25c2b423dd553f4cc5f.zip | |
(describe-function-1): Don't return empty string for keymaps.
| -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) |