Function: eieio-help-constructor
eieio-help-constructor is an autoloaded and byte-compiled function
defined in eieio-opt.el.gz.
This function is obsolete since 29.1; use describe-function or
cl--describe-class.
Signature
(eieio-help-constructor CTR)
Documentation
Describe CTR if it is a class constructor.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-opt.el.gz
;;; METHOD COMPLETION / DOC
;;;###autoload
(defun eieio-help-constructor (ctr)
"Describe CTR if it is a class constructor."
(declare (obsolete "use `describe-function' or `cl--describe-class'." "29.1"))
(when (class-p ctr)
(erase-buffer)
(let ((location (find-lisp-object-file-name ctr 'define-type))
(def (symbol-function ctr)))
(goto-char (point-min))
(prin1 ctr)
(insert (format " is an %sobject constructor function"
(if (autoloadp def)
"autoloaded "
"")))
(when (and (autoloadp def)
(null location))
(setq location
(find-lisp-object-file-name ctr def)))
(when location
(insert (substitute-command-keys " in `"))
;; The `cl-type-definition' button type can't be autoloaded
;; due to circularity during bootstrap (Bug#28899).
(require 'cl-extra)
(help-insert-xref-button
(help-fns-short-filename location)
'cl-type-definition ctr location 'define-type)
(insert (substitute-quotes "'")))
(insert ".\nCreates an object of class " (symbol-name ctr) ".")
(goto-char (point-max))
(if (autoloadp def)
(insert "\n\n[Class description not available until class definition is loaded.]\n")
(save-excursion
(insert (propertize "\n\nClass description:\n" 'face 'bold))
(cl--describe-class ctr))))))