comparison lisp/help.el @ 25605:d1251e911451

(describe-function-1): Don't return empty string for keymaps.
author Richard M. Stallman <rms@gnu.org>
date Wed, 08 Sep 1999 07:41:52 +0000
parents 1ad8606c8cc7
children 60a23f3bd0cc
comparison
equal deleted inserted replaced
25604:634f6f699331 25605:d1251e911451
644 (format "%s autoloaded %s" 644 (format "%s autoloaded %s"
645 (if (commandp def) "an interactive" "an") 645 (if (commandp def) "an interactive" "an")
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)
652 (princ "(")) 664 (princ "("))
653 (princ string) 665 (princ string)