From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 35c893d 2/2: Move gensym to core Elisp Date: Tue, 12 Sep 2017 21:48:38 -0600 Message-ID: <874ls7uull.fsf@lylat> References: <20170912151313.7686.92637@vcs0.savannah.gnu.org> <20170912151315.C449D2087D@vcs0.savannah.gnu.org> <20170912172125.GA10696@holos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505342990 30102 195.159.176.226 (13 Sep 2017 22:49:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 22:49:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Mark Oteiza , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 13 05:49:54 2017 Return-path: Envelope-to: ged-emacs-devel@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 1drygD-0000A4-Pq for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2017 05:49:37 +0200 Original-Received: from localhost ([::1]:39922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drygL-00082k-0S for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2017 23:49:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drygC-00081H-79 for emacs-devel@gnu.org; Tue, 12 Sep 2017 23:49:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dryg8-0002kc-3O for emacs-devel@gnu.org; Tue, 12 Sep 2017 23:49:36 -0400 Original-Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:33261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dryg7-0002j5-Um for emacs-devel@gnu.org; Tue, 12 Sep 2017 23:49:32 -0400 Original-Received: by mail-io0-x22e.google.com with SMTP id k101so15136866iod.0 for ; Tue, 12 Sep 2017 20:49:30 -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=mlj3hsZ1CYddF709x1QgCoy6zI9mMfPMXaKPUQBATlM=; b=QJZ52g+JXI5G0nmENDWNLwwVuTA0eJyAnHVFr3VFyWKNC8oejhXAaBAxaFZdC5cqeq ussBmIm1NjxGPwGEI+yFYA4hVcVUGZjpmG4EGkGfCoaErPMkmr5jMQOLNnKUOk9L6VG2 9An+fDMuEUj2763a0VYaAu6Y4M/APAb0eIPjwcEU3+siDYbRpuHEU5wdMHn0LCzIowPh lzNtbu7cwFrP8YRGAbUuk+6/+KJNrKYGhvyZ4fvgxJLJPbsjBTNtk7dmL+gndMrxjxVM bBQETPbivpNVX0WkNLBfnRBPW4k6oHGLi0KFFUAKOxvgpJ1tc6hLBKMZtnePBIqHyXAw oPuA== 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=mlj3hsZ1CYddF709x1QgCoy6zI9mMfPMXaKPUQBATlM=; b=GsYz3M4hpDzY7Zlmd4clmgzqXlg9ivVq24tB5X6DNPv8rdN02TWwgQWAvY0BTOA8tV DNki+uB5yX1kQoVbz4AZE61a1nsM5zF/C9uoWK2OvnxVz1wr9eZQRfFspA0L04RFj9lb nMq9LfKpmzC3x0jouPowpVaMKpUjKOR4N353Sv1dod+Q0wFkUDschNjSH6/lrZa426tu BvNDNnJ0nr3aFWkGRIVylJx1VLAkabef0ejNF75geKa5dJQi0/1eabb03aseE+JFk+al awRZM6UkLIvLm7qt0/6+RBaRZ7hB6XWlMQAc+N2qrPeu9ejtv1C0IG0GfMwHWB7QgAv9 T3gA== X-Gm-Message-State: AHPjjUhBFZdY19sA4no2lhCOix9J/YNMbQJ/CUzIIIMEhMZMkImfmRvq WNuvzEgvjBt2AHVi X-Google-Smtp-Source: AOwi7QCSqLSyVn5p+LafC/ayg705s9EYKRrQZAAA0CnTcR9ou64t0GouGb5PztPqTacF6YzzKrsR3w== X-Received: by 10.107.144.6 with SMTP id s6mr15828263iod.253.1505274569584; Tue, 12 Sep 2017 20:49:29 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id 185sm6616281iov.60.2017.09.12.20.49.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 20:49:28 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 12 Sep 2017 14:28:40 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218239 Stefan Monnier writes: >> It was just simpler to not duplicate the code for such a small >> historical tidbit. > > Damn! So still no explanation for that weird functionality. > > > Stefan According to [1] (page 53), MACLISP didn't have a visible gensym-counter, and instead used an integer argument to gensym to allow programs to set an internal counter. According to [2], it was only decided in 1989 to have *gensym-counter* in CL, so before then having an integer argument made sense if you wanted to manipulate the gensym state. I don't think an integer argument makes much sense when there's a visible counter available. Checking it only in cl-gensym and not in gensym is a nice idea, but I wonder if people who use an integer argument here are the type of people to use `cl' instead of `cl-lib'. Footnotes: [1] http://www.softwarepreservation.org/projects/LISP/MIT/Moon-MACLISP_Reference_Manual-Apr_08_1974.pdf [2] https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node110.html