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.help Subject: RE: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql' Date: Wed, 28 Dec 2022 17:54:34 +0000 Message-ID: References: <878ritgaty.fsf@dataswamp.org> <87o7rprvia.fsf@web.de> <87zgb913fg.fsf@dataswamp.org> <87ilhveo2s.fsf@web.de> 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="21684"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 28 18:55:13 2022 Return-path: Envelope-to: geh-help-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 1pAae0-0005SG-Uz for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Dec 2022 18:55:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAadd-0002no-Ra; Wed, 28 Dec 2022 12:54:49 -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 1pAadX-0002lo-0g for help-gnu-emacs@gnu.org; Wed, 28 Dec 2022 12:54:46 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAadU-0000x2-Tc for help-gnu-emacs@gnu.org; Wed, 28 Dec 2022 12:54:42 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BSHhkhe003355; Wed, 28 Dec 2022 17:54:37 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=OQo9bCCQZ3Edtm+MVKWw7tvHugo6TEC7stMJS5t+fN4=; b=D/OjhY3iabYohSVE++0/NwJQ0JsfJC0mm0A5ZE1E3HSyfBpnVhEWT2veojYjhyUvtxz1 0uGfIUHaYTa3iWUjG1zhiC2fMXgeTnBKbZkfAEhVy45Dh1c8vko6uFtLSaKUVN9fRk5/ xveIKT2Ek/0I9cwvsDH6CM9poUCRkGmEjerOsywHp+2hZaoyaOq3x7yoxOqzzJN6PJgy WDx1qAoRLuTdtDaEaTkHvseNVkPgjYx+OhnOhFgEmoGKgAQ8/FwOkKreZM4HjFBACLDT gXMXoDugd6hnUkB0VDg0i8ZrYkCKx0Rt3MsP/3Yk/zUYjgCBY6jZiEi9cbtmVOMyPWMm vg== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mnsaa5qtk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Dec 2022 17:54:37 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BSHDf6P008586; Wed, 28 Dec 2022 17:54:36 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3mnqv678wd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Dec 2022 17:54:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kE+uQBgM7i8z4ixTqTfY4And4G6AUtPxQtpfd8WDDaJCAa3l8e92fK5Rasvq8Yr7on+MyeBBbGj9uQD7cQvhwbuv+OuquP3amjPzyGECGNVyAYXSSENArgDS+vsGEu8QnSTMyFrKLogGDjPImPOt5aSh2O7VCCHm2M273V0K35Sfgd8mmQsxrWvtuOI6n3Z8+yPucE5mvujbsm6o4pUdcwK2D8vZcSeXIKD0xIe2Z3Egs+VMZInuvV9hf5+TetHi4PTuwbEfgqWJJztSkjerIJp3mZHQSxilKVPGnDRctXoW34lNSXgRuwBptBcAsrovCB5+aOnvDoUx+Nqo1/N0ug== 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=OQo9bCCQZ3Edtm+MVKWw7tvHugo6TEC7stMJS5t+fN4=; b=JTu7Aa3MbFt1+Vf60FsShuS0LK+3AQdNzW+VkZle9Cwh2i3nRe9+eg/FGM7japmR/PbkZgu4EaBOMeAKIZcafCHLvUvBjpnBLdzjYW3qxChTBL4szU2LKsFZv/EOTsv7buhmbl38z2NVSeo0iBtcSHy0zLOttwRumo+JMnotoYiBqKhXD/I7L+RXJvnv24EoMrUTtvdGdfOVj1AaZOhWOB9Km9wwhq/r9rdQ6Oi5AYStcB7tBzXncugK3bv6/qQ8ZsLvXuB/894A6JZVF9vG7cwk44+sF+HbBGHqiBEWb2PyIfJtlW6gbPkkXJ2ZkY0UQXpaFxm1YkA0bal3QmZpPw== 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=OQo9bCCQZ3Edtm+MVKWw7tvHugo6TEC7stMJS5t+fN4=; b=iEz6woGAtZUHzQULJdcx29RvrhYAZokN6rKovMVd8ynoUQ1qFIxDtBlINpoGpWNAl3aj4BsnIOWFtxuGYkP0MoxL/uts9Hr5wM9C8wjM86nwSLI/Q0jwPU3ev+PACqhGKEoDzY5NdcrtGTMyoas52p5LvTAn18ipXE3pYAT/yl8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BY5PR10MB4371.namprd10.prod.outlook.com (2603:10b6:a03:210::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Wed, 28 Dec 2022 17:54:34 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%8]) with mapi id 15.20.5944.016; Wed, 28 Dec 2022 17:54:34 +0000 Thread-Topic: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql' Thread-Index: AQHZGrPTIxNjn1SszkqCrTIw5di6+K6DkVhA In-Reply-To: <87ilhveo2s.fsf@web.de> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BY5PR10MB4371:EE_ x-ms-office365-filtering-correlation-id: 8c06fbcd-6c13-48ad-4e26-08dae8fc9444 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 30pTylL3YAzsfejvkuBJ1+d2btlOj2L/MOZiE2zRz+xrZT/JEDHyJBHGXdLgDkqaV0jh2qk4OqBOYuGatf7klb9zzxE4Ncfwm7nbV4015cGoI1O5t4MgaCw0uBnCj3leOfniJ1qn4jLcO0bcEbTh4J4QHT/2J45ZQ4Ynr/5ePMs5/JBFv/3HU997lmnXFO19Ur6mTPYs1ClC2g8B6sCoCAx+b1Ge+Y6Ei//Isnukuc4msmjVbHuSsFcggkTkz2tQDRcivOiSvgZAXidGfRm6vcz1Im4Sf2Xzb/f580sI4L4cpHbPMBZuE2LfFg6+trJEwKv+F45zy1DcKVPZNqxmi5DcZIs8hX5RVdONKjZEJS2Qzqp8Rq7lX2Uir42JVJrWFbTZdbV3EkHJZ97g6GkS9FT8t2WMuRjVvY5EyMfCzM00xITEkzc0Ly2h2hQPCxO5TLKSRCja/PuQu4962JF1ZKOz0GgO2yjrsm5ySpdOTTUUzE4UcrVAyqtW0+zc+go0enPXvzWLxyinfsXjlC0TUKul4Y5Az5LfCyKev76pge4XG3G/UPaqcJ1vih0Wu7o7SQsQEfvBsX3cqFxkaTq/qJxUIpDBYH7PKgNUYZX+95YuSxnB841tbBlHdJDQBF4+sraca3wA/KDfmU4lldfdSKrsVecXipX1A+TigL4+HGoeURB4viBVXMXKxETqDVKBqC+PqK3ZwSUdXzg538+24R2UbLF53UfFUhQR709WDB4= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(376002)(346002)(396003)(39860400002)(136003)(451199015)(6506007)(38070700005)(9686003)(478600001)(55016003)(186003)(26005)(33656002)(316002)(110136005)(86362001)(41300700001)(71200400001)(2906002)(52536014)(8936002)(7696005)(44832011)(5660300002)(64756008)(66476007)(8676002)(66946007)(66556008)(122000001)(76116006)(66446008)(38100700002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Mn9IhMNT0/+r9TDi0rH+QQCaQaB/U9aLcvUbZ9siR1MzYP66z3DuU79v4Qhg?= =?us-ascii?Q?ya8FsmhJOP2adyrGwgM4eCNcWzZ342mPXbryTRoypxxt0R8wtpDK0BhwZiK1?= =?us-ascii?Q?fpRajufwWyKMGBwepPKVVnGyoBtMvILiqtr1buGKclhB1pJGUHKTBDZG/vHE?= =?us-ascii?Q?PtpMsnAGrZha5tRfznerT8op5hk0/lyzTQe0of4rFASQ/Hzg1WQxF49ULBe1?= =?us-ascii?Q?O1O8BvQS+FsIaMz9JzQRqAfJMeo7G/1T8vcmCLGjKfS8oSEjGWsFxaaSskIE?= =?us-ascii?Q?5AEI3O9cZ2aL+2KZg0FKUy+YYrVQHVHFsE8LpS3OPBoVjPrE0pSb5q793Fkw?= =?us-ascii?Q?cXUQajVUgcyQLXmjug5c1aqDZ55Pxe7bQRbND6N8Vs0pwjq2QSVo6FQhU0PF?= =?us-ascii?Q?RkjkzRSYQgebxANEaKMK17Cy3BBtnN1vyoCAnQ8h122DmIQE/BaqH1cz0ha2?= =?us-ascii?Q?lpaTJDorPToPt+JBQM7p7pdc5NhEnTyF5IPeneQo64h6Xdez9RjB0cUEivTq?= =?us-ascii?Q?J1VIIypG8FkmBnPilHENMLKX7U9lrqbP8qX/U3MSyTodpUdU7GT44FGvmVq0?= =?us-ascii?Q?DdlJ7vgFV5I4Uf1EIzNGFq3H3QJzt4ppQIG5RgfspfPvvZaGUxYBjOrLkj91?= =?us-ascii?Q?B/ X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c06fbcd-6c13-48ad-4e26-08dae8fc9444 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2022 17:54:34.3097 (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: d5yt7EnQzu/4zpDZVyDi9ngGx37zpHuZwIf06cznMld5yifUz2ZYzOfl/wI7xqpsQSVMlut037ShjaMTf8ZU9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4371 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-28_13,2022-12-28_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxlogscore=957 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212280154 X-Proofpoint-GUID: OXnNscrzWkmWjmgwVs4G1ddKlYVxf0uD X-Proofpoint-ORIG-GUID: OXnNscrzWkmWjmgwVs4G1ddKlYVxf0uD Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141997 Archived-At: > I think the interpretation of the question "Could there be a better > default comparison function?", in the sense that `eql' is a bit nicer > than `eq' for specific value types, is valid, especially when > considering that `cl-pushnew' is often used for configuration stuff or > other purposes where speed is not crucial. If Emacs wants to have its own `pushnew' macro then its definition can and should do whatever is best for Emacs. But if Emacs wants to have a macro that emulates CL's `pushnew', and thus call it `cl-pushnew', then it should behave as much as possible like CL's `pushnew'. And that includes defaulting to using `eql'. IOW, don't think about what default predicate would be best for Elisp, for `cl-pushnew'. Think instead about what default predicate CL uses for `pushnew'. That's what emulation is about. BTW, this isn't a guideline to "protect CL" or something. It's a guideline for the benefit of Elisp: clearly identify what's CL emulation and what's not. And yes, Elisp can and perhaps should directly include some more CL macros as its own (doing whatever's best for Elisp, and not bothering to best emulate the CL version). This could apply to `pushnew'. ___ And it applies to `case', IMHO. Encouraging or coercing folks to use `pcase' or `cond' just to handle the simple and common case of `case' is overkill.