Function: cl--describe-class-slot
cl--describe-class-slot is a byte-compiled function defined in
cl-extra.el.gz.
Signature
(cl--describe-class-slot SLOT)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-extra.el.gz
(defun cl--describe-class-slot (slot)
(insert
(concat
(propertize "Slot: " 'face 'bold)
(prin1-to-string (cl--slot-descriptor-name slot))
(unless (eq (cl--slot-descriptor-type slot) t)
(concat " type = "
(prin1-to-string (cl--slot-descriptor-type slot))))
;; FIXME: The default init form is treated differently for structs and for
;; eieio objects: for structs, the default is nil, for eieio-objects
;; it's a special "unbound" value.
(unless nil ;; (eq (cl--slot-descriptor-initform slot) eieio-unbound)
(concat " default = "
(prin1-to-string (cl--slot-descriptor-initform slot))))
(when (alist-get :printer (cl--slot-descriptor-props slot))
(concat " printer = "
(prin1-to-string
(alist-get :printer (cl--slot-descriptor-props slot)))))
(when (alist-get :documentation (cl--slot-descriptor-props slot))
(concat "\n "
(substitute-command-keys
(alist-get :documentation (cl--slot-descriptor-props slot)))
"\n")))
"\n"))