From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#52063: 28.0.60; Confusing presentation of lambda Date: Thu, 25 Nov 2021 11:56:16 -0800 Message-ID: References: <83czmqaegb.fsf@gnu.org> <874k82vwe5.fsf@gnus.org> <831r35afde.fsf@gnu.org> <87v90hu36b.fsf@gnus.org> <83v90h8zjw.fsf@gnu.org> <87r1b5u1cl.fsf@gnus.org> <83pmqp8vps.fsf@gnu.org> <87v90ge5rc.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33722"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , Filipp Gunbin , 52063@debbugs.gnu.org To: Stefan Monnier , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 25 20:57:11 2021 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 1mqKrm-0008dS-Nx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Nov 2021 20:57:10 +0100 Original-Received: from localhost ([::1]:57226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqKrl-0003V2-9J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Nov 2021 14:57:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqKre-0003Uo-9o for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 14:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqKrd-000686-UJ for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 14:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqKrd-000479-N2 for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 14:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Nov 2021 19:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52063 X-GNU-PR-Package: emacs Original-Received: via spool by 52063-submit@debbugs.gnu.org id=B52063.163787018515771 (code B ref 52063); Thu, 25 Nov 2021 19:57:01 +0000 Original-Received: (at 52063) by debbugs.gnu.org; 25 Nov 2021 19:56:25 +0000 Original-Received: from localhost ([127.0.0.1]:58080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqKr3-00046J-8m for submit@debbugs.gnu.org; Thu, 25 Nov 2021 14:56:25 -0500 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:36694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqKr1-000465-BJ for 52063@debbugs.gnu.org; Thu, 25 Nov 2021 14:56:24 -0500 Original-Received: by mail-pl1-f175.google.com with SMTP id u11so5243579plf.3 for <52063@debbugs.gnu.org>; Thu, 25 Nov 2021 11:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=q3UphxP4g+0omeFnMd+VQngpiV78P2Pah2TghrNvzpw=; b=W6E5CyuZgH5MMV97MEhXjmqXWtx9fNwoA5vvaSBdmn33PbbOsCK976YTIUOKa4YJmV SbvIapqJYNoUXEVoXPGFXhk5LesbTN68k17OmIopnxKiOPvXOjaG3j1Jw+Xay646p53D kN0/yrKxfCkGLK0TF8zyO1gXxlWRTDZJ46GwMx9msWwS0a4/9h3tmKiBfdUGj8msAdDo 0LGvwISKzHkhnL9oMVncBfJQeZJvq22QAnm3oKT8RobTt4lI2JpTnHjXwKL6TeNOnKKh 8usz6CZJmX6cHGOWExG4gQSFKH0BmN6odSRtySGPO7hfzzLWWlYMcSSj5zn3QiBQ8jzi waOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=q3UphxP4g+0omeFnMd+VQngpiV78P2Pah2TghrNvzpw=; b=tt/eZ5G6gznhLCvk2y4i6kXMtZ3hQQxm6ZcXzD0VeUu2+SgSI7+cvVtfZHuQABnrx/ jdkoGgqE0XRyGEKAX2tQR5jTew00NdOIMmtzPjhn5HH+yNe9Cxd7PKWKVF8GczLvHt89 N89WcmtSItCcHbfG6ANHvzqdo7NBR5vszs686lfjYIawRe/QsmmuMWlprXgovh0krLJe rwrYWwsP/O/IsZSpqXnNkSv3OD9g/+b+xalOL4lDLpSM6TqkI5R7FhfQh/+iuaJegK9+ yqzOsurxfizYeozbBbK3JWVwNl/ZZicu51vjy4zR995XCHcPOcHCM8w+FVZri5zlpZ3p HxQw== X-Gm-Message-State: AOAM530nAOlt0lO2/omVWzgNIwTfPS5GEHWjZSf5MKHet6e/lfGEdpBm 8g4zDDT7mXlFlnQc76SPg4B1yYqMtY8= X-Google-Smtp-Source: ABdhPJx6jfz540oEBBrzU2lchCwJaKzaf6ayn/s7qept7uKYHp10rwRuYJsfl+5ecJKCXmCmNgaPpQ== X-Received: by 2002:a17:90a:4b47:: with SMTP id o7mr10299246pjl.92.1637870177393; Thu, 25 Nov 2021 11:56:17 -0800 (PST) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id d9sm9650289pjs.2.2021.11.25.11.56.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Nov 2021 11:56:17 -0800 (PST) In-Reply-To: Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:220849 Archived-At: On 11/25/2021 11:07 AM, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > IOW, the final `t` can be dispensed with, we could swap the arglist and > the captured environment, and we could filter the environment to only > include variables which are actually used inside the function. It might be nice to print an empty arglist as "()" instead of "nil" too. While both of those are equivalent, I think "()" is more idiomatic when showing an arglist. Currently we have: (lambda () (setq foo 1)) ;; => (closure (t) nil (setq foo 1)) In that case, since there's no captured variables and no args, it might be nicer to show it as: (closure () () (setq foo 1)) Or even: (closure () (setq foo 1))