cl-preloaded.el: Improve docstrings of "kinds"
* lisp/emacs-lisp/cl-preloaded.el (cl--class): Improve the docstring. (built-in-class): Add a docstring.
This commit is contained in:
parent
044558766a
commit
a496378c94
3 changed files with 5 additions and 3 deletions
|
@ -260,7 +260,7 @@
|
|||
(cl-defstruct (cl--class
|
||||
(:constructor nil)
|
||||
(:copier nil))
|
||||
"Type of descriptors for any kind of structure-like data."
|
||||
"Abstract supertype of all type descriptors."
|
||||
;; Intended to be shared between defstruct and defclass.
|
||||
(name nil :type symbol) ;The type name.
|
||||
(docstring nil :type string)
|
||||
|
@ -306,6 +306,8 @@
|
|||
(:constructor nil)
|
||||
(:constructor built-in-class--make (name docstring parents))
|
||||
(:copier nil))
|
||||
"Type descriptors for built-in types.
|
||||
The `slots' (and hence `index-table') are currently unused."
|
||||
)
|
||||
|
||||
(defmacro cl--define-built-in-type (name parents &optional docstring &rest slots)
|
||||
|
|
|
@ -444,7 +444,7 @@ primitives such as `prin1'.")
|
|||
|
||||
(defun cl-print--preprocess (object)
|
||||
(let ((print-number-table (make-hash-table :test 'eq :rehash-size 2.0)))
|
||||
(if (fboundp 'print--preprocess)
|
||||
(if (fboundp 'print--preprocess) ;Emacs≥26
|
||||
;; Use the predefined C version if available.
|
||||
(print--preprocess object) ;Fill print-number-table!
|
||||
(let ((cl-print--number-index 0))
|
||||
|
|
|
@ -189,7 +189,7 @@ DOC is a string where \"FUNCTION\" and \"OLDFUN\" are expected.")
|
|||
if
|
||||
(cl-assert (eq 'interactive (car if)))
|
||||
(let ((form (cadr if)))
|
||||
(if (macroexp-const-p form)
|
||||
(if (macroexp-const-p form) ;Common case: a string.
|
||||
if
|
||||
;; The interactive is expected to be run in the static context
|
||||
;; that the function captured.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue