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#29866: 27.0.50; cl-loop: Calculate the array length just once Date: Wed, 27 Dec 2017 20:49:57 -0500 Message-ID: <87vagrtyd6.fsf@users.sourceforge.net> References: <87wp18179m.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514425757 8399 195.159.176.226 (28 Dec 2017 01:49:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Dec 2017 01:49:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29866@debbugs.gnu.org, Stefan Monnier , Tino Calancha To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 28 02:49:13 2017 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 1eUNJk-0001bp-QX for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Dec 2017 02:49:08 +0100 Original-Received: from localhost ([::1]:57108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUNLj-0001KT-J1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Dec 2017 20:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUNLd-0001Jd-2w for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:51:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUNLa-00087A-0s for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:51:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUNLZ-00086r-TT for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:51:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUNLZ-0000I6-JQ for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2017 20:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2017 01:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29866 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 29866-submit@debbugs.gnu.org id=B29866.15144258141054 (code B ref 29866); Thu, 28 Dec 2017 01:51:01 +0000 Original-Received: (at 29866) by debbugs.gnu.org; 28 Dec 2017 01:50:14 +0000 Original-Received: from localhost ([127.0.0.1]:54347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUNKo-0000Gw-AM for submit@debbugs.gnu.org; Wed, 27 Dec 2017 20:50:14 -0500 Original-Received: from mail-it0-f52.google.com ([209.85.214.52]:39830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUNKm-0000Gj-77 for 29866@debbugs.gnu.org; Wed, 27 Dec 2017 20:50:12 -0500 Original-Received: by mail-it0-f52.google.com with SMTP id 68so27238964ite.4 for <29866@debbugs.gnu.org>; Wed, 27 Dec 2017 17:50:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=cV2yosrEJSigiRm8diSerlyz5x8dj4LnOny4MeFfOls=; b=Q2wqEpRkfCMO1QleIaeI18c8p87oeyJ5vLi3guzV78ofJWmEPgdVbttCuXuZGz9WAQ qLqtOYf5O0TYkQxy3tYbYI4/UVfFcJA4PCslx1tz+pepPWF9Tjrf/5oHGlCwCAhTNI+4 X4S1zTZUa3Dufu/M82/oMJ8TEQaczwidL5Vyn/AvCE/ShXOd/1UnMPBgl5E+Hs8gUDop pbZqP9tMaaClSg+1XgpZrRGfAlPp5XNcTQ/M7/7y2CEP6Bm9TtkMCFSzbIgfPJDoxoha zS3sebg+PbzRBVnHykIc9kJxuVxRd+06G814fhFhNXqzRClNfnONIbXPAfy7Rw9kXMpK XK3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=cV2yosrEJSigiRm8diSerlyz5x8dj4LnOny4MeFfOls=; b=tWSpeZ+X5+pDE0WhPwhfodl329v+X+/9TV4c0p/9sTjwKw94Atkyq4QQoRDBNlBEOb UQfLZBptitITzBXNFEWS0sgAptEkSfAgO75FNuzjOYhpEQFWXxI+HjscpSudvdJagkKl EN9Wgmbyjy1yXgjSA26EojGFKgQO1bceTJtlz7l8Y/I9VmnCBOoBMjoTeYic2H2gp8fG oRREfn33njqICWYc6Caaxl/H7hcKf54A0Zf+lA+0JFQHj8qPNoxLY3zDBvuZwuYj/ufb C3ZPrTkyCke/zO2CYxsGX4/mxR1myiALxaeb78eH2vO+T2FWmzL5nhYLE1kiLSM2J4Nl BwQQ== X-Gm-Message-State: AKGB3mJGpQUtwKn8u7zbIN6EF41uUUI1RBYqU6DQK/8Sq56XliblYaeh j5qc3BwJXH+6rQELmz3WhDcz+g== X-Google-Smtp-Source: ACJfBov4J2ukqcORFNRoljRTlNv578XFqzHJ1s5lNN/eMInYoxmTlWY+wygzcEeiW5WrLGaRn6V7fQ== X-Received: by 10.36.221.216 with SMTP id t207mr38750792itf.112.1514425806334; Wed, 27 Dec 2017 17:50:06 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id y19sm18266044iod.46.2017.12.27.17.50.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Dec 2017 17:50:04 -0800 (PST) In-Reply-To: (Drew Adams's message of "Wed, 27 Dec 2017 17:27:05 -0800 (PST)") 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:141557 Archived-At: Drew Adams writes: >> While studying this code I found easier to hack if we use gensym's >> instead of make-symbol; otherwise, the code creates several symbols with >> the same printed representation "--cl-var--". For example, with >> current code you can read expansions with something like: >> >> (let* ((--cl-var-- 'foo) >> (--cl-var-- 'bar)) > > That's the same variable, `--cl-var--', bound > first to `foo' and then to `bar'. That's a printout using print-circle and/or print-gensym set to nil. If those were set to t, you would get something that could be properly read back as lisp code, e.g.: (let* ((#1=#:--cl-var-- 'foo) (#2=#:--cl-var-- 'bar)) (frobnicate #1# #2#))