summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/generator.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/generator.el')
-rw-r--r--lisp/emacs-lisp/generator.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el
index 8251682590e..08e1b7c27a9 100644
--- a/lisp/emacs-lisp/generator.el
+++ b/lisp/emacs-lisp/generator.el
@@ -90,7 +90,7 @@
;; Change this function to use `cl-gensym' if you want the generated
;; code to be easier to read and debug.
;; (cl-gensym (apply #'format fmt args))
- `(make-symbol ,fmt))
+ `(progn (ignore ,@args) (make-symbol ,fmt)))
(defvar cps--dynamic-wrappers '(identity)
"List of transformer functions to apply to atomic forms we
@@ -308,14 +308,14 @@ don't yield.")
collect (if (symbolp binding)
(list binding nil)
binding)))
- (temps (cl-loop for (var value-form) in bindings
+ (temps (cl-loop for (var _value-form) in bindings
collect (cps--add-binding var))))
(cps--transform-1
`(let* ,(append
- (cl-loop for (var value-form) in bindings
+ (cl-loop for (_var value-form) in bindings
for temp in temps
collect (list temp value-form))
- (cl-loop for (var binding) in bindings
+ (cl-loop for (var _binding) in bindings
for temp in temps
collect (list var temp)))
,@body)
@@ -704,7 +704,7 @@ of values. Callers can retrieve each value using `iter-next'."
(defun iter-next (iterator &optional yield-result)
"Extract a value from an iterator.
-YIELD-RESULT becomes the return value of `iter-yield` in the
+YIELD-RESULT becomes the return value of `iter-yield' in the
context of the generator.
This routine raises the `iter-end-of-sequence' condition if the