From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33199: lambda forms are not self-quoting Date: Tue, 30 Oct 2018 09:01:29 +0200 Message-ID: <83in1jlxyu.fsf@gnu.org> References: <87zhuwic9a.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540882871 16146 195.159.176.226 (30 Oct 2018 07:01:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 07:01:11 +0000 (UTC) Cc: 33199@debbugs.gnu.org, garreau@debbugs.gnu.org, galex-713@galex-713.eu To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 08:01:06 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 1gHO1Q-000447-MM for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 08:01:04 +0100 Original-Received: from localhost ([::1]:51260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHO3W-0000Cv-SR for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 03:03:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHO3N-0000Cd-5f for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 03:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHO3J-0004Mo-VQ for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 03:03:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48891) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHO3J-0004MP-RD for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 03:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHO3J-0002GX-Me for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 03:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2018 07:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33199 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 33199-submit@debbugs.gnu.org id=B33199.15408829238637 (code B ref 33199); Tue, 30 Oct 2018 07:03:01 +0000 Original-Received: (at 33199) by debbugs.gnu.org; 30 Oct 2018 07:02:03 +0000 Original-Received: from localhost ([127.0.0.1]:53149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHO2N-0002FF-CS for submit@debbugs.gnu.org; Tue, 30 Oct 2018 03:02:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHO2L-0002Ei-Dp for 33199@debbugs.gnu.org; Tue, 30 Oct 2018 03:02:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHO27-0000ds-Lk for 33199@debbugs.gnu.org; Tue, 30 Oct 2018 03:01:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHO1f-00080a-Tl; Tue, 30 Oct 2018 03:01:19 -0400 Original-Received: from [176.228.60.248] (port=1841 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gHO1f-0001NT-61; Tue, 30 Oct 2018 03:01:19 -0400 In-reply-to: <87zhuwic9a.fsf@gmail.com> (message from Noam Postavsky on Mon, 29 Oct 2018 19:06:25 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:151812 Archived-At: > From: Noam Postavsky > Date: Mon, 29 Oct 2018 19:06:25 -0400 > Cc: garreau@debbugs.gnu.org, alexandre > > Alexandre's recent post about pcase-lambda made me notice that lambda's > docstring claims lambda forms are self-quoting. However, they are not: > > ;; -*- lexical-binding: t -*- > (setq lexical-binding t) ; for *scratch* > > (lambda (x) (+ 1 x)) ;=> (closure (t) (x) (+ 1 x)) The doc string is still correct if lexical-binding is not in effect, isn't it? > From: Noam Postavsky > Date: Mon, 29 Oct 2018 19:01:07 -0400 > Subject: [PATCH v1] Don't claim lambda forms are self-quoting > > * doc/lispref/functions.texi (Anonymous Functions): > * lisp/subr.el (lambda): Don't say that a lambda form yields itself, > under lexical binding it yields a closure object. This removes useful information, IMO. I'd be much happier if we added to the existing docs that lambda is not self-quoting in the lexical-binding environment, and described (and explained) what does happen in the lexical-binding environment. Thanks.