comparison lisp/help.el @ 38349:7b0388aa6abf

(describe-function-1): When printing FUNCTION's documentation, don't assume FUNCTION is a symbol.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 10 Jul 2001 14:09:09 +0000
parents 8401588c656a
children 92af2bb73b51
comparison
equal deleted inserted replaced
38348:63774f1993c3 38349:7b0388aa6abf
747 (terpri)))) 747 (terpri))))
748 (let ((doc (documentation function))) 748 (let ((doc (documentation function)))
749 (if doc 749 (if doc
750 (progn (terpri) 750 (progn (terpri)
751 (princ doc) 751 (princ doc)
752 (if (subrp (symbol-function function)) 752 (if (subrp def)
753 (with-current-buffer standard-output 753 (with-current-buffer standard-output
754 (beginning-of-line) 754 (beginning-of-line)
755 ;; Builtins get the calling sequence at the end of 755 ;; Builtins get the calling sequence at the end of
756 ;; the doc string. Move it to the same place as 756 ;; the doc string. Move it to the same place as
757 ;; for other functions. 757 ;; for other functions.