From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nick Dokos Newsgroups: gmane.emacs.bugs Subject: bug#62840: 30.0.50; Doc bug: obsolete paragraph in Elisp Ref Date: Fri, 14 Apr 2023 13:48:59 -0400 Message-ID: <874jpiz75g.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="553"; mail-complaints-to="usenet@ciao.gmane.io" To: 62840@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 14 19:50:37 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnNZF-000AYE-Ou for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Apr 2023 19:50:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnNYm-0002MH-I6; Fri, 14 Apr 2023 13:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnNYg-0002KM-Jo for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 13:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnNYf-0008FV-U7 for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 13:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnNYf-0005C4-Q4 for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 13:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nick Dokos Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Apr 2023 17:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62840 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168149456719894 (code B ref -1); Fri, 14 Apr 2023 17:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Apr 2023 17:49:27 +0000 Original-Received: from localhost ([127.0.0.1]:47536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnNY7-0005Ao-7x for submit@debbugs.gnu.org; Fri, 14 Apr 2023 13:49:27 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnNY5-0005Ag-5x for submit@debbugs.gnu.org; Fri, 14 Apr 2023 13:49:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnNY4-0002Ia-Nf for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 13:49:24 -0400 Original-Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnNY3-00083s-7N for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 13:49:24 -0400 Original-Received: by mail-qv1-xf2a.google.com with SMTP id oo30so4521948qvb.12 for ; Fri, 14 Apr 2023 10:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681494558; x=1684086558; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=a4L/qrQ4B/yby1cR0xLJOaHlaANU7GH5AmbfT0ZvJrk=; b=saL3ZRhwtL9CC4APfnr5hZFZ57yPxiTOxxCkPx4PJHuOumQn9IaAlRR+o+9u2Dj/ku BunvrhcV0RA3aH+uXFeSafWSgAgwz9tCJMFPgiL5+Za8sxV0WJGmaylU4O9fg2jP3t35 k5DUCfVNPyucSEnmErDNTP5EOk+vtt1Qkcns3omyo/ghUY86NL8gRbKjQU3MxiWuBtcj W/8zqcEZt2RN5IQeNOk33NLJ/duDwmozWdDuJzT3QViYXE+pSpcE65qSpodk2fHjTzd5 tHYH/54MWu9w0iaBw5lQkdS45iF+fkUUm8Vx7TeVmQpkZQNde4vyyhkZdf29Ex+ejSua 0NwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681494558; x=1684086558; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a4L/qrQ4B/yby1cR0xLJOaHlaANU7GH5AmbfT0ZvJrk=; b=WMNC1maC/aQdbGVdtlVbzZic0hSAMPkmBLc64cEEIk7KJVvCJVjdoj2JnpVWNrJ8Fx W6R/NocwLzhIb0s2gy6kAcZ3vcttxggtEiFhdsbDinUKZjjypZznB0TMjuQAgUAmKvbe +xbCrdXjKdrG9RhwLGj6pNL+m2VLbuvP+iL8MBfXMpMffSXej6ozFZ+rh+I0JNGB4Scm VUxyYroEDi+9h9j3vmDS3njUhlbocizCAfYSceWWn/YF9WXsELkVhDTwVn8vBBsfgYav +jrCUnAYC0x/wxQLlqqj2Eu3UvieqQuchNw1FEbXIcEYdUCeJsSYpwW7vf0MOjDL07CS 34Bg== X-Gm-Message-State: AAQBX9dK3HpVknzAFcXolzDnxPdVo5r03cVR8h+Q7pC3c9E4IiN1+VAJ 5bieT+ijsrR3LQeXY1JayFlyqOIiipI= X-Google-Smtp-Source: AKy350Z1qcdFFnQICGXyW7P9u1cFVuH801sYdRtAYwZv8pIW+xShhDXk6YFMqPsVQwBFiyDKHeObTg== X-Received: by 2002:a05:6214:5296:b0:5aa:8e3e:496e with SMTP id kj22-20020a056214529600b005aa8e3e496emr4295608qvb.34.1681494558199; Fri, 14 Apr 2023 10:49:18 -0700 (PDT) Original-Received: from pierrot.dokosmarshall.org (pool-74-104-158-46.bstnma.fios.verizon.net. [74.104.158.46]) by smtp.gmail.com with ESMTPSA id k2-20020a056214024200b005ef451995f5sm1264984qvt.30.2023.04.14.10.49.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 10:49:17 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2a; envelope-from=ndokos@gmail.com; helo=mail-qv1-xf2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259949 Archived-At: --------------------------------------------------------------------------- Emacs Lisp Reference manual, Chapter "Variables", Section "Lexical Binding" says: --8<---------------cut here---------------start------------->8--- ... (Internally, the lexical environment is an alist of symbol-value pairs, with the final element in the alist being the symbol =E2=80=98t=E2= =80=99 rather than a cons cell. Such an alist can be passed as the second argument to the =E2=80=98eval=E2=80=99 function, in order to specify a lexical environm= ent in which to evaluate a form. *Note Eval::. Most Emacs Lisp programs, however, should not interact directly with lexical environments in this way; only specialized programs like debuggers.) ... --8<---------------cut here---------------end--------------->8--- I don't know if the structure of the lexical environment was ever really relevant: it seems to be an internal detail that should not have found its way into the documentation in the first place, but that's guessing on my part. The important thing is that it does not seem to be the case any longer: the `t' is present at the end of the lexical environment in Emacs 28.2: (let ((foo 233)) (lambda (x) (* x foo))) =3D=3D> (closure ((foo . 233) = t) (x) (* x foo)) but it is no longer present in current upstream: (let ((foo 233)) (lambda (x) (* x foo))) =3D=3D> (closure ((foo . 233))= (x) (* x foo)) so the above paragraph needs modification (if not outright excision). --=20 Nick