summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2025-03-04 14:32:33 +0800
committerPo Lu <luangruo@yahoo.com>2025-03-04 14:32:33 +0800
commit9daab9be343f930c8db4c33881abc96e65c01bd7 (patch)
tree3274add08d7cbee7a34d91091c0ce71b1167216e /lisp/emacs-lisp/cl-macs.el
parent9415941a9c65b72a3bc20ae0ec1765f3c0ed657d (diff)
parent7dcf9b71e6ffc0cc92d2d504b1428c3ab432a028 (diff)
downloademacs-9daab9be343f930c8db4c33881abc96e65c01bd7.tar.gz
emacs-9daab9be343f930c8db4c33881abc96e65c01bd7.tar.bz2
emacs-9daab9be343f930c8db4c33881abc96e65c01bd7.zip
Merge from savannah/emacs-30
7dcf9b71e6f ; Don't document package-x.el a5fd518d524 ; Document spurious warnings on macOS 15 625ed68aeaa Fix the use of xref-window-local-history together with Xr... 80917727676 completing-read-multiple: Fix support for ":" as separator 38cc36a3753 ; Improve docstring of cl-check-type
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
-rw-r--r--lisp/emacs-lisp/cl-macs.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 8673b360319..d3d4524028d 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -3576,7 +3576,10 @@ Of course, we really can't know that for sure, so it's just a heuristic."
;;;###autoload
(defmacro cl-check-type (form type &optional string)
"Verify that FORM is of type TYPE; signal an error if not.
-STRING is an optional description of the desired type."
+STRING is an optional description of the desired type.
+
+Hint: To check the type of an object, use `cl-type-of'.
+To define new types, see `cl-deftype'."
(declare (debug (place cl-type-spec &optional stringp)))
(and (or (not (macroexp-compiling-p))
(< cl--optimize-speed 3) (= cl--optimize-safety 3))