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 03:23:47 +0000 Message-ID: References: <878ritgaty.fsf@dataswamp.org> <87o7rprvia.fsf@web.de> <87zgb913fg.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="1059"; 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 Wed Dec 28 04:24:41 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 1pAN3Z-000AdI-2A for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Dec 2022 04:24:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAN2w-0003Se-4o; Tue, 27 Dec 2022 22:24:02 -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 1pAN2u-0003S5-9f for help-gnu-emacs@gnu.org; Tue, 27 Dec 2022 22:24:00 -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 1pAN2r-0007KD-LA for help-gnu-emacs@gnu.org; Tue, 27 Dec 2022 22:23:59 -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 2BRBlJNM011610; Wed, 28 Dec 2022 03:23:50 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=XuxINxYoRZuUCv4J+idPNJ3abX9N9PouQxsPONlmExU=; b=ZJZDaslIICGTcfBhT5XsSq/I+xVQlpdysdDB5M4LTmXlV5CUQMNk/EUSvdjTdHpE2PnF QsU2gnL3VZiYN5VHyj+hY2IfYSTQVpjj8PQOoqmNpAjDK7drv5dDX5y0ZjjsiKGm7sS2 xmYMMVPnnGzq7PNO9AQ9I59lLtkqy+yxZjR6EDwsCg5t6jneOK3yMJF/eOvQ5/dX17xF 5nOONilmQfW6N0pLbc2ZvBOWINRz8z6V9KIJ0XapHwF7zcP0gTDDxCBkTy4bPfSgTmPP SJOufFsHSXtrBqiP7DsxOfAzy7UDlpDUXtpzPXCvj+juaDIKXTij1eO/1ei91iLem3JR XQ== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mnrbb4u0a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Dec 2022 03:23:50 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BRMKGw3023986; Wed, 28 Dec 2022 03:23:49 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2104.outbound.protection.outlook.com [104.47.70.104]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mnqvbcq7e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Dec 2022 03:23:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dHtgeS43al/ZVt8gKUSzLGoMDMGvuppIRHDUGN01TwJb6hB5DE+iilVCzuWMZrKutVXFhE64d+hjIK6rjMJm6yEW3V805WpiLt91z8+fbZA1kpKpVOc2YMYBK3R263cmRSKhZVAb7uSF5IJBrVkZPRfJvdn84KZ/DBQWSdNG505nuf65ok63fzikQwIhi+CCMyk5ccj8TFdEjPYWcT8d4rrq0udAC8tK/rgGuLrrAuBySOyazvLjDVWM6853u+GcJpXpnayjzEIuIjgEvEcqnVrhRD+8wlvzuXAWbfaeo9EN5G+0oi0Z92yIUWk7i9192Uke4VGLNam8S5u1aw+n4Q== 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=XuxINxYoRZuUCv4J+idPNJ3abX9N9PouQxsPONlmExU=; b=eCePf8h1D4WWWbIdYjO0cPDN+pSVgmXsLuJ3sQl26TxpjRc9TZlPRkrHm3jBhdweevny5xoe+vz7Cv/gNPpx3mOniuRr3eBd/Npjr/mTSeLy0DNRR+8gOySYIcMIhFK0Gqo49QqK7eqEeMdWMuJRSo1LiPEqoDjGBXQMxPi1DSILN+AM/ZdvwXfU+kQuu1mHWDBeqZymHlDMDt5QDKzs0+isQ+Vu4x2l9O27WXIggSq4ckeE0BzjFyo0bo7iHfHShizzjgjj255qwP7mg05c6wplKdHTcHd6E13BKhDne3fjpy9A/0l5B+NVTH/wzL6eseeLyzZxe5tDAE30ibsCOw== 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=XuxINxYoRZuUCv4J+idPNJ3abX9N9PouQxsPONlmExU=; b=lVVYpKc/3HlNT8yr0xPBLyu5NI+qU3AkP3R3luTckHGAWFtW9cn4skegp6Zh+EaUbs00Vr98+EkSBxLtNo94pzYx7twBdRe30lYe9T2dZdYmxlIsrRMG5+YHM3ZEjTlKOAa5UyeW0GwyGPZovg+k+frOGIl9k8T3Izxlk/Ll43A= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB4464.namprd10.prod.outlook.com (2603:10b6:a03:2d0::6) 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 03:23:47 +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 03:23:47 +0000 Thread-Topic: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql' Thread-Index: AQHZGefYIxNjn1SszkqCrTIw5di6+K6CnnjA In-Reply-To: <87zgb913fg.fsf@dataswamp.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SJ0PR10MB4464:EE_ x-ms-office365-filtering-correlation-id: d1708df0-e22b-483e-4073-08dae882eebf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2PXTtZSKOHneHhJqGL+CEjvYptTl+os+rWGVEupaxfYQSskL1uX5Ut4pbFWyTWZmXKSlqsDOxO+8hYVsZe4lqaGQDJouNTibx9kq+iIEJMrCPPz6hmriBr8ByCRrTbtA1qRHV9FfPbF+EJuTD5WKbCCdKcHXBhRMNS/zY3g1AUFtV2DGea4xCjSSJF7AR/DTKmHKmQ6Wo9BaEwTK8+6tz2/2SP5jwCy4bjeJOxFbO7XI8omYdbBTGooMbKR58/SAu+gR5RTPlXz4z0059IOfB1sFeLba2r4RpfRlYhiU1GblFx1XGBFUkuhpcBBGAPhk3RuYznOxZYgR4jZO3UQSC3yHLv/m7Jph9SWBvy49XmmLz4cil6k/mR5WqAz3wbgF1lebMulLXGDGw2ZRaqTSysPDvDxGhgZmU4TXT/FmSG9Jn01hN53OkRKJJOjH4KS5mihQNH/RjIxP6tYzxEnExNhZX5DA18L2TBGwytcfSmdaQ3qKwYL51MSX9oCCbeWO4mArZhiP9N9KNJ9WxZjyJ9mpA39m2MW1r32uYmSnx3QumJjTrVLmUNtNymhgkTP/6MZGEfVYCJ0PgN/5TR+4pSqdpCIa8dMMDjM68SW0rYWpsm0xOU774+y1885LzK62i2wJjHvfW77ZgckpNq2jcE1q+Gu5UzmZsTYPf3tkaGoI1D4lLKezIGU0fIfsc7GM17aPFspx2Wj5y8VZWQYIXhPmWU3PZpxJ1gj5p0dkTGapTDlO2ds761v4eOYpq FIX 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)(376002)(39860400002)(396003)(451199015)(478600001)(33656002)(966005)(2906002)(316002)(71200400001)(110136005)(83380400001)(38070700005)(38100700002)(122000001)(26005)(9686003)(186003)(6506007)(7696005)(86362001)(55016003)(8676002)(52536014)(8936002)(44832011)(66476007)(66446008)(66556008)(76116006)(66946007)(5660300002)(41300700001)(64756008)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?q9RGmfkWA7hqOEa5FqP6g1kmqPwgTMotVoCoHOSyOM45yo/qYncqDcgJ1bhr?= =?us-ascii?Q?bjtfAsdo14sD1iyBOUy4fQasfDhwTDZk1xZ4mHN9QR95a3M/J05WPgzGdmtE?= =?us-ascii?Q?mpqjwwDMpk0cbUQZGzdti4NUl4veBhjrxsGZDqgErwIocYAUGHXp3YJrWgsu?= =?us-ascii?Q?6+SKbqXaioO29eJeeQV+AfdWppwkIedmyfi4GHcOpddrJRd46/nouNE61Ier?= =?us-ascii?Q?fdVr6xZh0JKm+ekQqN1kVV/FEEF0IwySJV20FShaKYzeB0Cpm0+M9Mw4ZRsD?= =?us-ascii?Q?p7PZqM1adzM/HduDPQ6CLihu/w85WkNNPwdnMH76mjFGG4JG5xUUdfV1MynX?= =?us-ascii?Q?+GZoTXflxyvf1KHJf8XsLsB/O30v/JQE+60lnOBKItzQpadisURKgRXRnkOd?= =?us-ascii?Q?4oFaN8KDTUcjJCjeG9Xt0Ru9EIMdceEWYpyCWEdOidMhqpW2Mw+vtogzhbkA?= =?us-ascii?Q?YJ88qfajWATbP5dWdZ/RonvQnXTmc5LwNwkkxBtYglGf4tFLj+tNpjhbtdP4?= =?us-ascii?Q?j0dME+o3UP2vnd6EFu+ew2RTMm/00pwpn6FsVwQQA5VmnF4G8TFkIv7Et7ZP?= =?us-ascii?Q?BDjgXJurH8J0LcxFP7MYlyL1ovJ42fis8J/Z5/xrwCP9j5lRUXBG9mesrlkd?= =?us-ascii?Q?9i 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: d1708df0-e22b-483e-4073-08dae882eebf X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2022 03:23:47.5094 (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: da4yQCwHvLtO+6Ca40RhwsOUNOaysi2uNG1E0gFH3/FPp4xpcoeHY2q43TwnSpjLJbFYA3p+33qzoFTjzaqOnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4464 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-27_18,2022-12-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=700 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212280024 X-Proofpoint-GUID: zoFu9Er_rHjfB_EeQUgOH0UiHApPyXFP X-Proofpoint-ORIG-GUID: zoFu9Er_rHjfB_EeQUgOH0UiHApPyXFP Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, URI_DOTEDU=0.949 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:141988 Archived-At: > (cl-pushnew "/usr/share/emacs/site-lisp/elpa-src/slime-2.26.1" > load-path > :test #'string=3D) >=20 > but this is not a model I can endorse, this is why you have that > level of abstraction to begin with, i.e., not to be bothered all the > time with implementation details. >=20 > Might as well to provide :loop #'cl-dolist how to iterate the > list as well ... >=20 > And after that ... is there anything else to specify before we can > get rid of `cl-pushnew' altogether since it amounts to doing > everything manually anyway? `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'). https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node149.html ___ IMHO, it should be the case for _all_ things that `cl-lib' tries to support. We shouldn't (IMO) be in the business of adding stuff to `cl-lib' that has nothing to do with CL. But that's happened. On the other hand, there's no reason (IMO) that Elisp can't have its own functions that have the same name as CL functions (sans `cl-'). In that case the Elisp functions need not behave the same as the CL ones. IOW, `cl-lib', and the `cl-' prefix, should be reserved for CL emulation. Elisp has `push', for example. It need not be the same as CL `push' (but I believe it pretty much is). Emacs could just as well have a `case' macro, and not require you to load `cl-lib'. Similarly for other commonly useful macros. Why does Elisp have one CL thing (without `cl-') and not another? You might well ask.