all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Tino Calancha <tino.calancha@gmail.com>
Cc: 31696@debbugs.gnu.org, stefan monnier <monnier@iro.umontreal.ca>
Subject: bug#31696: 27.0.50; dotimes-with-progress-reporter: Polimorphic 2nd argument
Date: Sun, 03 Jun 2018 10:02:54 -0400	[thread overview]
Message-ID: <87sh647ysx.fsf@gmail.com> (raw)
In-Reply-To: <87y3fw3rmh.fsf@gmail.com> (Tino Calancha's message of "Sun, 03 Jun 2018 22:51:34 +0900")

Tino Calancha <tino.calancha@gmail.com> writes:

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

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

That's still going to evaluate (cadr spec) twice.  You need to change
the spec passed to `dotimes' so that it also uses `end'.





  reply	other threads:[~2018-06-03 14:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-03 13:15 bug#31696: 27.0.50; dotimes-with-progress-reporter: Polimorphic 2nd argument Tino Calancha
2018-06-03 13:40 ` Noam Postavsky
2018-06-03 13:51   ` Tino Calancha
2018-06-03 14:02     ` Noam Postavsky [this message]
2018-06-03 14:09       ` Tino Calancha
2018-06-17  9:36         ` Tino Calancha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sh647ysx.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=31696@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=tino.calancha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.