Function: eieio-read-subclass
eieio-read-subclass is a byte-compiled function defined in
eieio-opt.el.gz.
Signature
(eieio-read-subclass PROMPT CLASS &optional HISTVAR INSTANTIABLE-ONLY)
Documentation
Return a class chosen by the user using PROMPT.
CLASS is the base class, and completion occurs across all subclasses. Optional argument HISTVAR is a variable to use as history. If INSTANTIABLE-ONLY is non-nil, only allow names of classes which are not abstract.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-opt.el.gz
(defun eieio-read-subclass (prompt class &optional histvar instantiable-only)
"Return a class chosen by the user using PROMPT.
CLASS is the base class, and completion occurs across all subclasses.
Optional argument HISTVAR is a variable to use as history.
If INSTANTIABLE-ONLY is non-nil, only allow names of classes which
are not abstract."
(intern (completing-read prompt
(eieio-build-class-alist class instantiable-only)
nil t nil
(or histvar 'eieio-read-class))))