1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Doc fix (bug#79206).

This commit is contained in:
Eli Zaretskii 2025-08-10 11:45:31 +03:00
parent 0da899c035
commit 4b90b6e7ce

View file

@ -230,9 +230,11 @@ SPECIALIZERS-FUNCTION takes as first argument a tag value TAG
(defmacro cl-defgeneric (name args &rest options-and-methods) (defmacro cl-defgeneric (name args &rest options-and-methods)
"Create a generic function NAME. "Create a generic function NAME.
DOC-STRING is the base documentation for this class. A generic DOC-STRING is the base documentation for this class. A generic
function has no body, as its purpose is to decide which method body function usually has no body, as its purpose is to decide which
is appropriate to use. Specific methods are defined with `cl-defmethod'. method body is appropriate to use; ARGS are currently ignored if
With this implementation the ARGS are currently ignored. there's no body. If BODY is present, it provides the default
implementation.
Specific implementation methods are defined with `cl-defmethod'.
OPTIONS-AND-METHODS currently understands: OPTIONS-AND-METHODS currently understands:
- (:documentation DOCSTRING) - (:documentation DOCSTRING)
- (declare DECLARATIONS) - (declare DECLARATIONS)