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: Thu, 29 Dec 2022 22:27:53 +0000 Message-ID: References: <878ritgaty.fsf@dataswamp.org> <87o7rprvia.fsf@web.de> <87zgb913fg.fsf@dataswamp.org> <87lemscg23.fsf@dataswamp.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="18819"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 23:28:22 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 1pB1Nt-0004kP-It for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 23:28:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pB1Nd-0008Kd-Is; Thu, 29 Dec 2022 17:28: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 1pB1Nc-0008KS-5c for help-gnu-emacs@gnu.org; Thu, 29 Dec 2022 17:28:04 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pB1Na-0008Et-BD for help-gnu-emacs@gnu.org; Thu, 29 Dec 2022 17:28:03 -0500 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BTIwvPe010662; Thu, 29 Dec 2022 22:27:56 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=taovJEf0Q32L5sZVi3kM11RvlLsJunjywWi6CW3W7eI=; b=GqnAsqDD3Ds24qZ1pDTgTfNdhQB1wuI/Dm8aeXlkma/WNxZ2mpr8eNsyvs/X+b2F/i4a rS9rw2wXBnhrJv7AOQmn5YftgQHkU2PrL5qAzdBcr1CLKBcQSCVRVr2vnoUXXCMq6B/M CiewUlVlDqlNsGHxivm8TFjtmtyMAhUr4dra+7a0eNechH6aPBHFGxkZglxYVdeJo5U8 2BJTlfKd8RBvabLPTAV81lHZ1ZaFLBRJDKlIHXNrQqROI82LIe+cPlzIPzasEWCLdiG8 1pj4p6+msSdk6wjBaHhMhcH3fXf/HVwie4mZOi/llcO7FVzjrmNo7lx61oU9hB3eQmpB pQ== Original-Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mns1tfdgn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Dec 2022 22:27:56 +0000 Original-Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BTIWOfb001455; Thu, 29 Dec 2022 22:27:55 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2174.outbound.protection.outlook.com [104.47.57.174]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mnqv7dcv5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Dec 2022 22:27:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iWPqvCENqlYO1rGKLvhdahUQVvxoZeIpamH6l+G6AjUaYT714CbVDxIvoTGDyMsFzbCdzbZmHzSnEOu0NdHKgjpNdT1w6UHTsDmT7AEG3ZwC29G3fJbKMon8TA4J2t4U6vC9YPQcYAbtzJLpVsb2dT23MogPLuLls+56EbK6ahP4p7wQ5Iar/S5wfcOxNBhndC9DO7+Sgfu8ud//x9tDsk4axc22T1GRBZ8Bq5O72I5yO5jULqUgZWZPzUbAdvMAistIRElsdtfqTzP5AuJwItLzWIY2wgUrOsqkNv2MU7IB8uMpYeitpi+2E3Uer8wZzpSKgjC5MwdVINxbwW+fdw== 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=taovJEf0Q32L5sZVi3kM11RvlLsJunjywWi6CW3W7eI=; b=Nz0SBnwkYCXLeAPcTCrmG//BXEh5qjTdoKc2WYuAnVawmxtWMktvaG3GHZqaaIFgjpThYDjXk+ebri1W3EW26Fvsnr5RGwjF2kQtL3drIZe3FeUFXAOndoFBQ5kJtOt/eJcbTrBqsCUD9rVWRC/R5B3wgXj7YcfE11n2Y2fRDIfmlfNceyCY1uIHpmIvNy7MpVg3cW0voWk6rwXFAXOnh6Tn9sI+E4B8P5CaCNBE8sIs8wbjbz8ALpvi27d35SnM80ZgOlzvB0ydGCuzjBhcT2igVjHESf0XTakK/oM6VVoH9VZHG9Sbq/7PiPnOqzQuX4x5r3zpwhh/UXgxacMSUQ== 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=taovJEf0Q32L5sZVi3kM11RvlLsJunjywWi6CW3W7eI=; b=FHN7ITWogX+ky28uBbyd1OJvYXlXz3Qi923dyK0P+ljOv3THaO8w59X+3W9O40H2ou/Fm8SoSg8gzsDF2T1aMldJuBIWwFUcWoJnPgNw1eOeswoI5Q1y2ZOkvnLEpcQuhzBqbNskkPB4hzpqjZ0lTn46XkRZNRNCiPw61tyPZ4g= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DS7PR10MB5928.namprd10.prod.outlook.com (2603:10b6:8:84::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.12; Thu, 29 Dec 2022 22:27:53 +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; Thu, 29 Dec 2022 22:27:53 +0000 Thread-Topic: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql' Thread-Index: AQHZGnQbIxNjn1SszkqCrTIw5di6+K6FcyLg In-Reply-To: <87lemscg23.fsf@dataswamp.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|DS7PR10MB5928:EE_ x-ms-office365-filtering-correlation-id: e823fe66-7f9b-43c5-f5ea-08dae9ebed28 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2cDGHNM442g12oQfTUXj+qCZR6vboJmYzgItodO+Gw0PYLw62qaKdJgvCwUNKW1ZRoNsAstltJ+oSJFHSSjJcitDBrimqVc76zvPfLbBP1wLOlrUnMSUUSBpZ137UosX2ZnoPsxlB8WoDo9nezAqOA6nF/boxgEeipP+Yb9J3tqHCg/dcY77i+qf2t31sofBpHyjyNWJODng5OOUo31htoB8vVpmOJeb/pWh/Eq24ndLiPYWkQWGJ2QZU/kL2UAYgjMqbGBFLoVwCtwEOkxlXLIQCg6b1FRTtn32k6krfPEClabv5UZD1hqd0fvg15dMd+VQnanIDi9wdkpSuJr78e78brwE3lCqJgnq0aT/Gvg5o1SLDzEyem4rbSWwyp55MCjKotHcaNrOhyQ3RZZ3MRPqy7b9ICXz98qKOLGiWooZQTZGtafWL+Y3zNQvJfyJz29EHT0SdsXkKAAMaOpmS03eXWA7hCXs9sejJYL5UTKLNjWkC8IpIBLS8ozYWGRDE43YUGnOYfU85eOMKgN2wQBba3NCRKC/qrSNqzcgJwcM8ekpFjuSZA/TmbfCv0Y3hwOREdFujvEjEZH0UMRBJ6r1lxTXlNXrp6VJDoutl22Z7TYNZM744qVlbpo+Gm+PEOqkhEqM0oFiv5brlr+rhaO4Gb5H3OXGDuhlMUJ/6/Nn1sSY0FskIiNPogUrZU30NlYZ8GNrPWE+mb5zMWi2qcKe5xGW+GjhvVdRY05BlPI= 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)(346002)(136003)(396003)(376002)(39860400002)(451199015)(66946007)(55016003)(41300700001)(478600001)(8936002)(52536014)(5660300002)(44832011)(38100700002)(38070700005)(2906002)(122000001)(316002)(7696005)(71200400001)(33656002)(110136005)(86362001)(64756008)(8676002)(66556008)(6506007)(66446008)(9686003)(26005)(186003)(76116006)(66476007)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?x0wYrT8M04gdmFQ/uGYHNuV2cVsgQSjln5t4bBcbCCPdpTCiEHXBqJuIM9ej?= =?us-ascii?Q?MuFQD8w4IZsVRIVHc0wWabqCvx9Aem1CK5qjDR5prL74YXfrPIJ/6R+pDbAD?= =?us-ascii?Q?B4jKn3frv2cn+/QkqrZIYykNZqeBJG3DK2X/iZR8XnZ+1QUXMyDx9QcoVW7e?= =?us-ascii?Q?J81NnC16SOibTKEbUjp0G7E7GuqX4yoP1WFKzPx/WUixfwerI1ShN5Csau1s?= =?us-ascii?Q?gbmRQb7NyeL+T9dzgtFNHfmLRxL8/d4YmVBIPmJ2SNvNKHgUNWO0rrG/AkMi?= =?us-ascii?Q?MK5/wZBnkuqOh9DRvM1USghcgbOj4VgkpxbmJ2Nn9sr+CW1EQBe4VBhs/3qp?= =?us-ascii?Q?4y01lSCfOdhDknOhGzexEq4CBjMOv7jrgxsZs38hOpVXk9O2YAMs4geIgofv?= =?us-ascii?Q?RI/0ytnvsqTijihm0IEhv0YtetQbbNmJk2/GWT14u+1KtinemRRlrRX5hLar?= =?us-ascii?Q?qIa9a1s3JVb0QL5VgDWmGU9jVr2WxI73tAYH7L6TWCWI49PrQ+SkpesgpOm6?= =?us-ascii?Q?MA5BqXlD9PtcVLyY4/gZ+nv50nrMrqq5yDxO7YgHw8BHxRieuNd58cXpmzDJ?= =?us-ascii?Q?+nJHDBPbuxi/1CNVVXK3JhwW5fEhtQk+PWbUVWxyrPWhPT3kniSoI9NLfzxJ?= =?us-ascii?Q?XA 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: e823fe66-7f9b-43c5-f5ea-08dae9ebed28 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Dec 2022 22:27:53.1192 (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: V/O3GORY4wBd2eU3R3T/4HJ+DqqA3TFOLB8moBvHjRF/uWhW96YlakP4FrSpAkZgiWNnVpLzkZTFOFuFA1ZH+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB5928 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-29_12,2022-12-29_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=903 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212290187 X-Proofpoint-GUID: sHkcXBTry4JYlIp89Wcev0Zdb7dw_6VO X-Proofpoint-ORIG-GUID: sHkcXBTry4JYlIp89Wcev0Zdb7dw_6VO Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-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:142047 Archived-At: > > `cl-pushnew' should be an emulation of Common Lisp `pushnew' - > > neither more nor less. > > > > I'm not sure what your point is, but `pushnew' defaults to using > > `eql', not `equal' (or `string=3D'). So if you want `pushnew' to > > compare strings then yes, you should pass a predicate such as > > `string=3D' (or `equal'). >=20 > It's much better if the function itself checks what type the value > is of and pick a suitable function to compare from that, then the > user don't have to think about that at all. Again, `cl-case` came from CL `case' (and that came from other Lisps). Elisp is of course free to do whatever it wants. It could add an optional TEST predicate arg etc. Checking the "type the value is of" is problematic. For one thing, you might well want to control the type of the arg so that it just fit the predicate you want used (e.g. `eql' in the current case). And some values are of multiple types. E.g., nil's a symbol and a list. And some types are subtypes of other types. E.g. lists are sequences.