From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#60895: Make lambda warning easier to understand Date: Tue, 17 Jan 2023 23:25:29 +0000 Message-ID: References: <87h6wowzb7.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13583"; mail-complaints-to="usenet@ciao.gmane.io" To: Dan Jacobson , "60895@debbugs.gnu.org" <60895@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 18 00:26:15 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 1pHvLJ-0003G6-O1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Jan 2023 00:26:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHvLB-0003bR-11; Tue, 17 Jan 2023 18:26:05 -0500 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 1pHvL9-0003SL-3l for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 18:26:03 -0500 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 1pHvL8-0003f7-RE for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 18:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHvL8-0003xd-5d for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 18:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jan 2023 23:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60895 X-GNU-PR-Package: emacs Original-Received: via spool by 60895-submit@debbugs.gnu.org id=B60895.167399794015198 (code B ref 60895); Tue, 17 Jan 2023 23:26:02 +0000 Original-Received: (at 60895) by debbugs.gnu.org; 17 Jan 2023 23:25:40 +0000 Original-Received: from localhost ([127.0.0.1]:38501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHvKm-0003x4-4k for submit@debbugs.gnu.org; Tue, 17 Jan 2023 18:25:40 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:49710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHvKf-0003wq-Iz for 60895@debbugs.gnu.org; Tue, 17 Jan 2023 18:25:39 -0500 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30HLwbG1024558; Tue, 17 Jan 2023 23:25:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=fHup5SdSmW+mIh8rQoZ/lIziW7XIaUyMaieOs/B11w4=; b=AYRcjsAgRI694Znf2rVhuAgv2n0blDY3ZHTqLFvUyO7xyujah/UbjibM2zi6M5o/uS/7 pTrwv20iOq7MepV1AUUtHzc2xOLQ24QYvJgkbg9vGeeOLdgIzCEK5lxaMYS1oApMjiAp 71phqpEQP5xJpkF2B37ALdDzqFvPZk0AWjgWbswL0JOGjSjlE52weRv69GJQAwZi9/6+ b0zsFxuu3uMdCH2Pg4hdctCYMScJzEKh0eIUpyAll9rhYXjX94bVir8vlt1vpb8LJCfn Hh4dQ4brg3MveprUCYDT1q4VHvl5r/joIhmPM3M5VZYReB0ZRXFVAqDl5HtTwDjN2eKB iQ== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n3kaaeacf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Jan 2023 23:25:32 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30HNIckf006022; Tue, 17 Jan 2023 23:25:31 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n658186ba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Jan 2023 23:25:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W32fGjtJOtsKciWqrpNRYW1EFubzxAGUEHU6ozofUi7P1/CWdbN6LyOAG/LpM26+VXGs+AJNfV0onTbOt8IgS252QLWIdjqHj5asSMaZdDJq0ZCIqpmG89qjD6pjatbrFaAIGg3gv5k1rmGDz2tr0VrUM+6EwCpFI+MpUOXmsgemKu0n21fglrbRYz7r4E7ukdSZM4bPjsL+ukdE/3hFQHhMaAXbmUKV6I/taL1sgSQiLUPZ5ao3QB7ed9Yy34vi1m4xHsM3/JfMHchIffLbMr4tfFLga6XOty1cYEmrC8zmvuZui9Qsl5OpgwUzaFxjzfbqtZX+/y1Nfi+q3/tuyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fHup5SdSmW+mIh8rQoZ/lIziW7XIaUyMaieOs/B11w4=; b=SBh26+AhQ0Q6g5VbWxs3Ulre/3dxYki45h57rdZiLLi3SShW83+z2Kvp0rOW6Flmoy2bKLL+tb95PqKjoqqZEgsv1G4EfgHA/lffkblNzLjXjC0+meRBRPQ5WKxEZ/z3z8CimDLg3nv17m8LTifcA4dsLPuaQ6NkPoymaRe0+bgH7VdMqUPcKfVa+dpN9yvyNtPAbCW6iH4KkXe/epYdRzhgs6Sgn0Ggt9unRz/2kKVkPXfm9lJGx5XcN6qQ/qsjAJ8LRAGN2BAx+tmWd8TLGeb8cgttr6JEI8VEh/oKm9Z12M8DxpPEWycXMZKRHqzQ8yLXSOVWCxhCVKixi5h7RA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fHup5SdSmW+mIh8rQoZ/lIziW7XIaUyMaieOs/B11w4=; b=UX3lB7M79yGyBuDnWB3qKNhJSX3zGTgau9zhxNoxXM7Xm4v8vhDEyCP0DsVrXu/hIfobZPAFO6IDdPjpp30wbVibdMR6gpRFLFxJPIrLr/cyTudz5L5lJe9VkHpA2EDml+XF//8DYFmCq25Ll2e1Ui7bjJ5nmpOU+7DXC9ZxdP0= Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com (2603:10b6:5:355::21) by CY8PR10MB6825.namprd10.prod.outlook.com (2603:10b6:930:9c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.10; Tue, 17 Jan 2023 23:25:29 +0000 Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0]) by CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0%9]) with mapi id 15.20.6002.011; Tue, 17 Jan 2023 23:25:29 +0000 Thread-Topic: [External] : bug#60895: Make lambda warning easier to understand Thread-Index: AQHZKsY6lu/s3zamaUqt+cA88rosbq6jPsLA In-Reply-To: <87h6wowzb7.5.fsf@jidanni.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR10MB5473:EE_|CY8PR10MB6825:EE_ x-ms-office365-filtering-correlation-id: 7bce3ba0-49f0-4c9d-c730-08daf8e21ef4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: No49+BfMtYCE6lxBj3/Y3pZx5Wo5q73o4LZ5W5tPN6cdHcVJS9pIrH7YmmJtUioZSXusj35gKFwtMQxyW7f7O6wZ8YyuN9bI2um845uHE7RUp9Rwha71VYoMsMQpw6J62lZ/e+eieD2qMA6tHcBZ2oyfcJbxpbfxI2vAhrk/im5dXhfEr2qwcsCUPPVlyZJG5NYmXQDvCxtEY9M71zYd2Nl9KUc3F1PfVKJrrPm8rz7yHthFCpsSfW2ILw9/Q8+TYgEqLXoN3upKbXWKS9Rh55aHPVQCxbaYirGmeEnj+2jqYQ1lp3hnWqIlRqd9LILw/1GpCtJFeJWwltiSdvmZPiK3IPpEa11VzdfR4Z2s9pCpBbk60PLt1xLBiXcy99DLR66JM2KVjOqL7MLT7/vxZpAympNzywHkmqbSzG/81nUiXSEnGhQixhml6+1rf4EyuAzj5DrVZxMJj8f5JDDyGg/h8+5Bu2I8PjU5lDDU7s9tfqG0OdOW+Cw6wGKhJDI1IwA00H5EzXRYKUOHA9CHl2S+f7Tn27s7dwEawuOrVmktZSMNwDBlVQMmqLefzbIwebFQRQFuNNeZE56wz+axgXdTeATe/3zoJPXoZ4k7CyUlHGfmVycpcM0jbvYlQSs/i2eEbwaLLsbjqMxuHmj7VsVpOTpr5GTL9kP4bZ0MfElIzXgFAxifjv1oYvoqW/Y1kFGFY7XIVxCWysMM7X28vANY50Roaffjd+YJyeC+wNU= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR10MB5473.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(376002)(136003)(396003)(366004)(346002)(451199015)(64756008)(33656002)(66946007)(76116006)(9686003)(66476007)(66556008)(41300700001)(26005)(186003)(66446008)(8676002)(86362001)(8936002)(5660300002)(52536014)(55016003)(38100700002)(110136005)(478600001)(6506007)(83380400001)(316002)(7696005)(4744005)(966005)(71200400001)(38070700005)(122000001)(44832011)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: JzNoOWxNEwVZh7trsVHGg47rwBvVrVDRWtqpUvdo1d5jMlG8m8rR/mGVqv7GidiwzB3Pf14/Oxiqr8vFBfyQm3JCqsKP2w692KqZqpd1p7myltFkZyLpgrhavWx9c9zfOjp0BWJUCCkWfRZFZW8C0WqqNGuvkOAmiM+s6OU91i+NhC3/Sagy/ThsUTdwoLpIs16QlZKPWHkE0yFxXhSc0VzQCR0j6gutLeuQXGTXv+aSoklalgaQ9eitMtwnL9GoawhESopTCq7ycU+aBGE/NvFPeGsNZ0DXruvuU9E/7YrOrG/W/5kQyDvuiC8puFOz4Kjpk10ITozzcWFbkwCI2rgHPJ+yy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e6sRReQ7+Rlu/8jVyHaltR0XSV+OIUdOBRdZWq+8GfMjZrHMUPND8sbtVt/XcT85D9S8aBmBrEQZPszjDhvzNz220R7Yflwg4hWsI4i/iB/UK1WqDJlRYJNs1B1iNAjHjiR/TaYUSNkeEyufa6EWkK5sCybQWfs29RUW7gq0ynNFXXQfJUj4A9IZdG667E7s34jaJXnA/Hfk9xrAXZwESUje8rkd4e2KoVYadzt98ajkNPT5XxOY0YpGI82O2ChqramY O3NGLvFM4PwDlVhcUnlg3qJHcyTnceAHpmbl+x7dTMN837/85B3nkMZITnY2s= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5473.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7bce3ba0-49f0-4c9d-c730-08daf8e21ef4 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2023 23:25:29.1377 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kTEkNRl7g+w7Wq9ltJamDkS84Vcz9oT4aijWgTik64BnDCDDs6Yhtxa0lCEWeAuHqev/Xc6Ilar9CVajYRbebg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6825 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-17_10,2023-01-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 mlxlogscore=681 bulkscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301170187 X-Proofpoint-GUID: OPUhqJhbcMZBE2Wj8A_FEK_iKy0WlbmX X-Proofpoint-ORIG-GUID: OPUhqJhbcMZBE2Wj8A_FEK_iKy0WlbmX 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:253590 Archived-At: > After saying > Warning: (lambda nil \.\.\.) quoted with ' rather than with #' >=20 > please also say > Just change '(lambda into #'(lambda >=20 > That way people will understand it. > https://urldefense.com/v3/__https://emacs.stackexchange.com/questions/743 > 18/warning-quoted-with-rather-than- > with__;!!ACWV5N9M2RV99hQ!IsLX9TB5zcLT0PwRzmL0cCiiGzx62LVQbGMPk3EiStP6kJvG > Um6D1reVbucpBxlw8r6g-KjbeT19F7SFjA$ Users should be told, so they understand: 1. Not to quote lambdas. Tell them that the result is a _list_, which only in some cases will be interpreted as a function. (And mention that the byte compiler often can't know the intended use is as a function, if it's quoted.) 2. lambdas don't need to be quoted - they're self-evaluating in Elisp - like t and nil. 3. Using #' makes the intention/use clear for all, including the byte-compiler. A byte-compiler warning is appropriate. Preferably it would also point you to doc explaining this in more detail in the Elisp manual.