mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
Misc small cl doc fixes
* emacs-lisp/cl-extra.el (cl-maplist, cl-mapcan): Doc fix. * emacs-lisp/cl-extra.el (cl-prettyexpand): * emacs-lisp/cl-lib.el (cl-proclaim, cl-declaim): * emacs-lisp/cl-macs.el (cl-destructuring-bind, cl-locally) (cl-the, cl-compiler-macroexpand): Add basic doc strings.
This commit is contained in:
parent
f6c6e09c7f
commit
5593ed900d
4 changed files with 27 additions and 3 deletions
|
|
@ -554,6 +554,7 @@ its argument list allows full Common Lisp conventions."
|
|||
|
||||
;;;###autoload
|
||||
(defmacro cl-destructuring-bind (args expr &rest body)
|
||||
"Bind the variables in ARGS to the result of EXPR and execute BODY."
|
||||
(declare (indent 2)
|
||||
(debug (&define cl-macro-list def-form cl-declarations def-body)))
|
||||
(let* ((cl--bind-lets nil) (cl--bind-forms nil) (cl--bind-inits nil)
|
||||
|
|
@ -1886,10 +1887,12 @@ values. For compatibility, (cl-values A B C) is a synonym for (list A B C).
|
|||
|
||||
;;;###autoload
|
||||
(defmacro cl-locally (&rest body)
|
||||
"Equivalent to `progn'."
|
||||
(declare (debug t))
|
||||
(cons 'progn body))
|
||||
;;;###autoload
|
||||
(defmacro cl-the (_type form)
|
||||
"At present this ignores _TYPE and is simply equivalent to FORM."
|
||||
(declare (indent 1) (debug (cl-type-spec form)))
|
||||
form)
|
||||
|
||||
|
|
@ -2537,6 +2540,10 @@ and then returning foo."
|
|||
|
||||
;;;###autoload
|
||||
(defun cl-compiler-macroexpand (form)
|
||||
"Like `macroexpand', but for compiler macros.
|
||||
Expands FORM repeatedly until no further expansion is possible.
|
||||
Returns FORM unchanged if it has no compiler macro, or if it has a
|
||||
macro that returns its `&whole' argument."
|
||||
(while
|
||||
(let ((func (car-safe form)) (handler nil))
|
||||
(while (and (symbolp func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue