(princ " runs the command ")
(prin1 defn)
(princ "\n which is ")
- (describe-function-1 defn nil)
+ (describe-function-1 defn nil (interactive-p))
(print-help-return-message)))))))
(defun describe-mode ()
;; Use " is " instead of a colon so that
;; it is easier to get out the function name using forward-sexp.
(princ " is ")
- (describe-function-1 function nil)
+ (describe-function-1 function nil (interactive-p))
(print-help-return-message)
(save-excursion
(set-buffer standard-output)
(buffer-string)))
(message "You didn't specify a function")))
-(defun describe-function-1 (function parens)
+(defun describe-function-1 (function parens interactive-p)
(let* ((def (if (symbolp function)
(symbol-function function)
function))
(if doc
(progn (terpri)
(princ doc)
- (help-setup-xref (list #'describe-function function) (interactive-p)))
+ (help-setup-xref (list #'describe-function function) interactive-p))
(princ "not documented")))))
(defun variable-at-point ()