bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Noam Postavsky
Subject: bug#31696: 27.0.50; dotimes-with-progress-reporter: Polimorphic 2nd argument
Date: Sun, 03 Jun 2018 09:40:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Tino Calancha <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]