Subject: bug#31696: 27.0.50; dotimes-with-progress-reporter: Polimorphic 2nd argument

From: Noam Postavsky <[email-masked]>
Date: Sun, 03 Jun 2018 09:40:37 -0400

Tino Calancha <[email-masked]> writes:

>     dotimes-with-progress-reporter: Polimorphic 2nd argument

Polymorphic with a "y".

> +(defmacro dotimes-with-progress-reporter (spec reporter-or-message &rest body)

> +  (let ((prep (make-symbol "--dotimes-prep--")))
> +    `(let ((,prep ,reporter-or-message))
> +       (when (stringp ,prep)
> +         (setq ,prep (make-progress-reporter ,prep 0 ,(cadr spec))))
> +       (dotimes ,spec

The (cadr spec) expression would be evaluated twice.