Function: defun*

defun* is a function alias for cl-defun, defined in cl-macs.el.gz.

This macro is obsolete since 27.1; use cl-defun instead.

Signature

(defun* NAME ARGLIST [DOCSTRING] BODY...)

Documentation

Define NAME as a function.

Like normal defun, except ARGLIST allows full Common Lisp conventions, and BODY is implicitly surrounded by (cl-block NAME ...).

The full form of a Common Lisp function argument list is

   (VAR...
    [&optional (VAR [INITFORM [SVAR]])...]
    [&rest|&body VAR]
    [&key (([KEYWORD] VAR) [INITFORM [SVAR]])... [&allow-other-keys]]
    [&aux (VAR [INITFORM])...])

VAR may be replaced recursively with an argument list for destructuring, &whole is supported within these sublists. If SVAR, INITFORM, and KEYWORD are all omitted, then (VAR) may be written simply VAR. See the Info node (cl)Argument Lists for more details.

Aliases

defun* (obsolete since 27.1)