macroexp doc fixes
* lisp/emacs-lisp/macroexp.el (macroexp-progn): Doc clarification (bug#19371). (macroexp-let*): Doc fix.
This commit is contained in:
parent
530a4af66c
commit
e56e85d227
1 changed files with 3 additions and 2 deletions
|
@ -319,7 +319,8 @@ definitions to shadow the loaded ones for use in file byte-compilation."
|
|||
(cons (nreverse decls) body)))
|
||||
|
||||
(defun macroexp-progn (exps)
|
||||
"Return an expression equivalent to \\=`(progn ,@EXPS)."
|
||||
"Return EXPS with `progn' prepended.
|
||||
If EXPS is a single expression, `progn' is not prepended."
|
||||
(if (cdr exps) `(progn ,@exps) (car exps)))
|
||||
|
||||
(defun macroexp-unprogn (exp)
|
||||
|
@ -328,7 +329,7 @@ Never returns an empty list."
|
|||
(if (eq (car-safe exp) 'progn) (or (cdr exp) '(nil)) (list exp)))
|
||||
|
||||
(defun macroexp-let* (bindings exp)
|
||||
"Return an expression equivalent to \\=`(let* ,bindings ,exp)."
|
||||
"Return an expression equivalent to \\=`(let* ,BINDINGS ,EXP)."
|
||||
(cond
|
||||
((null bindings) exp)
|
||||
((eq 'let* (car-safe exp)) `(let* (,@bindings ,@(cadr exp)) ,@(cddr exp)))
|
||||
|
|
Loading…
Add table
Reference in a new issue