From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#31696: 27.0.50; dotimes-with-progress-reporter: Polimorphic 2nd argument Date: Sun, 03 Jun 2018 09:40:37 -0400 Message-ID: <87vab07zu2.fsf@gmail.com> References: <874lik57ub.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528033145 26888 195.159.176.226 (3 Jun 2018 13:39:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2018 13:39:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 31696@debbugs.gnu.org, stefan monnier To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 03 15:39:00 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPTDo-0006rQ-Ny for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 15:39:00 +0200 Original-Received: from localhost ([::1]:35376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPTFv-0006Fn-Fj for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 09:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPTFp-0006Fh-AC for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 09:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPTFm-00089j-3R for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 09:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPTFl-00089f-Uk for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 09:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPTFl-0005yd-No for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 09:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jun 2018 13:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31696 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31696-submit@debbugs.gnu.org id=B31696.152803324622948 (code B ref 31696); Sun, 03 Jun 2018 13:41:01 +0000 Original-Received: (at 31696) by debbugs.gnu.org; 3 Jun 2018 13:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:59890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPTFW-0005y4-Lz for submit@debbugs.gnu.org; Sun, 03 Jun 2018 09:40:46 -0400 Original-Received: from mail-io0-f174.google.com ([209.85.223.174]:43851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPTFV-0005xs-Cl for 31696@debbugs.gnu.org; Sun, 03 Jun 2018 09:40:45 -0400 Original-Received: by mail-io0-f174.google.com with SMTP id t6-v6so16385268iob.10 for <31696@debbugs.gnu.org>; Sun, 03 Jun 2018 06:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=FLm3GkI+mUS15hvQXgJ5nmgfSRFghG97SX33CGGnu/I=; b=ip2M3DbszPNje4CUsMqZiG7nmmi7WAKS265c580bbX69naXCVwXMBXvgbbklV41VKA mBiwcvCJ2gPhBmIl8biZa9+fQ0eiL4GIKnwRZB/ef03irhyRBuNyxDonkY1/uF++ZI6G ZvagaDipcpKDdnaVTFegUqe1ab1uE59fkSngGgYek6vL9tWpMga8qf5y6ijTxS1TT/eG GlFblglPT1EiDXlkiptxrS9B8lLzZep1tQ+VihSzJIBLwO/37BEL9yqiH1Grbt+xWoDy WifjCBf9KSrpXAwp2RwItaphxTtkSaRTTV2X75r9G3k4spuARzV/zZ4cear6oDL6Ie6E MyTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=FLm3GkI+mUS15hvQXgJ5nmgfSRFghG97SX33CGGnu/I=; b=dEZT/Lnj3Uj4EkU4Gpdgl30Qt/5GUUWIsZGAW+m3t9DDMH8io5B+EhzV0TkO11tndv qNZ65NCNcpD7Qq8izqQzxzR7O4akMajhISBhkt1E93BA1GUWA6UUXl4S2NA+kjtlqIVa I0Y1UhflMb6SvXMmOT2QmwxxacPbdTgIKNi9vXRF70duLLgp4SWHa6c82Hl5sjdTR4C6 PoKnuErZqwYAg9aDrpqI7fD3qJdNWWqAZZodnuMu/jVrb/ghxDa5UFOnZnYdyWjOjLIF DMMw/UdH6pxYOHXFLrf+q6caUViDCIFnMtaJe3A5qbh9URaiw/k9WxO82NDBFbMbdF2i 0Yjg== X-Gm-Message-State: APt69E0X+DBX6gtrzXnYvhlnfxEHK2jBSzljHuuvCjJinBaKP3HaN0x5 BNI1T7cuRhiEBtfeoxrXZUI= X-Google-Smtp-Source: ADUXVKIBb1M0+t8Xptkqq/QBm4jwgDp8FA/hUnSU/R2uneDtnJxHUQVfrj4POU/x4KnYo4iSATG5tw== X-Received: by 2002:a6b:28c6:: with SMTP id o189-v6mr7144071ioo.149.1528033239882; Sun, 03 Jun 2018 06:40:39 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f72-v6sm3797474iof.14.2018.06.03.06.40.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 06:40:39 -0700 (PDT) In-Reply-To: <874lik57ub.fsf@gmail.com> (Tino Calancha's message of "Sun, 03 Jun 2018 22:15:56 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146902 Archived-At: Tino Calancha 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.