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#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Date: Mon, 27 Jun 2022 14:39:44 +0000 Message-ID: References: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> <87edzawcv8.fsf@gnus.org> <6BBB5BB7-3552-4A98-AED5-96EF3B688B4E@acm.org> <87zghyuvh9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38550"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , Nicolas Petton , Stefan Monnier , "47425@debbugs.gnu.org" <47425@debbugs.gnu.org> To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 16:43:32 2022 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 1o5pxc-0009rb-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 16:43:32 +0200 Original-Received: from localhost ([::1]:41262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5pxb-0002zx-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 10:43:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5puG-0006Mr-Mm for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 10:40:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5puG-00045w-DJ for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 10:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5puG-0003C6-AQ for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 10:40:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 14:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47425 X-GNU-PR-Package: emacs Original-Received: via spool by 47425-submit@debbugs.gnu.org id=B47425.165634080312269 (code B ref 47425); Mon, 27 Jun 2022 14:40:04 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 27 Jun 2022 14:40:03 +0000 Original-Received: from localhost ([127.0.0.1]:52982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5pu3-0003B9-2e for submit@debbugs.gnu.org; Mon, 27 Jun 2022 10:40:03 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:17854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5pu0-0003B1-VX for 47425@debbugs.gnu.org; Mon, 27 Jun 2022 10:39:49 -0400 Original-Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25RDdQhJ001793; Mon, 27 Jun 2022 14:39:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=mflY1njMsi0VUyj6UUXgjkZ0JzzYWUahDgGH7H8Jdvw=; b=D/hxX0zVGo2XAquir/iKVckOq8u/cTrBPV7u6zvMyU7sPgoOGwb3doDGDBXWtccw9p8a gZdtfdNMgb7MpiPMGbkRwKTEQlqXDYiEP5yKSWPxag9FYLmkqvWaPbdd1tiMIOFxnS+o Hf+zTy4b4zd1h0HWZmORfzC7U7nOEKzuzbIwSplK3/WDvGr3+5zYzWggjJQ1SUrmgw+u wvX0oA3c7bdSoR34d16P5rkG054iQqZrMjJyuckVSmKA1hO8/R7ildpqLPjfmi4jK68x ilTTfJlQXgTmLpzwCxPRubyx0xQ9xpOsdrXRHqULXJi+d6Gl8AAdFlNk3t0VofmhiYJT 1Q== Original-Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3gwry0beqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jun 2022 14:39:47 +0000 Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 25REUKkS038719; Mon, 27 Jun 2022 14:39:46 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3gwrt1bx04-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jun 2022 14:39:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LcGDo0Rhb9NPdweIR6Vaa8VMhvzPvqZGrAQWTN61RjLpdAafENkIcl68WcaKxS3sIPbr4+CudCGiJ+1oaYoTg0HO2jmtcq8kDSN4UiNU/F/QRyFzwnnvkpn14gGpBx34CtWHzhdXZd9Xc/OTVLVqVvqJqwB1ScoBqXJ26gEWu4nWgR+c7pInB3juU0XkzLcXikLJDvAkcQLDPnCfTzud54iPCmH7o7p+m1Q09pCPQe/wPZuOdGInlHTb8qzrh6INlE+bYIg0OXy7C+Yyexe7n0QZkS43DeySjhYnZSlnoKBerhxCWh8shph20tRUAtpZhQRVfmN9nOa7YCHy6ZN5LQ== 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=mflY1njMsi0VUyj6UUXgjkZ0JzzYWUahDgGH7H8Jdvw=; b=Qjriy2oyDCux4ko8Hrl7nAfQf54QpT+y+4jm8ZKtTD9dyRX8+xkX7/AxuEoGStUMxiXO3MT6sFkh4d5AWCggqXaHcLEyFL/qGyWXGqfSSBIoo7ph71z3Ul7onI5gkfSnOa5oh6z64yw84c8N1v8R+cYwiN9eVi//IwxssdYsIW+ZmkrkiYcj969ZzKWsOf0HqbakVCr1uLWN5gchUzEX4EeTLXbqBlzzWJFrNpCUJWyThmpA+hV+LQkIupDehW826fhe5vjgcucMQP544eDu2BO0UZC0O8K9eObXxnCfyPQENje1hIlmDP2RLIL8e89nUu/OuK8jGLjJKmO2j4nBUw== 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=mflY1njMsi0VUyj6UUXgjkZ0JzzYWUahDgGH7H8Jdvw=; b=HhvHoF/2HbM7RHKNcGbb/Hk11wwHRP8DwVh/kXesZIV2t6meUFgqTPaIKitUNc7EUXzJyBnOshmxYIbsp+n5APeJ2d71O2hONSA+nOxifjdldaAPrDrguddXV9t6GMUxNfK8BkVgOT8wsQX4f5mRnpmHr5K8R+4iWNpBmjdCA5s= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BN6PR10MB1364.namprd10.prod.outlook.com (2603:10b6:404:3c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.18; Mon, 27 Jun 2022 14:39:44 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::581b:ae2f:16b9:80fb]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::581b:ae2f:16b9:80fb%6]) with mapi id 15.20.5373.018; Mon, 27 Jun 2022 14:39:44 +0000 Thread-Topic: [External] : Re: bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Thread-Index: AQHYijO91iA+JEWL2UaASfnLQYYZcA== In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9d90ae9d-e559-48d6-67f6-08da584ae05c x-ms-traffictypediagnostic: BN6PR10MB1364:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1K/rEfJn0JWMIXvz2M9gzNh7az8sGeYPI5eBaRCEhV2G1ngOsWOeZqpHuqvqSjJnlmYOLECT34YmmH1vn5DyIST8P/xvUq1Ho9sTgJLwYCyL98qgGRWENKecOI6u2cHjblgFwXC/QtTrjSQ3XsfVMLoSSoFzuhLnr8t7X4YkGo7xxZuRn0epSQPLTnyvXOK+jyvUXM22OmVLSvJUzQeB2VlvITTD6ztKOynPOcr03r1JGNEBHIIN57CLMapePlBZa/qdYkC28kk/t7K7yaCj1C6rqmMstzuqZ+bQGQSIG/rjVQf7jm4Ab6eZPo5L7HREljnfDMfqBd1q4/Xo9jo5zMIHQLM+QRgKU4f0C0aUB1nZPI9B57TjIO2XGCznAnafO0IRHGz+fybJPjUdAk5un+dNHMQ0F7l4HmiVYbJWaynu4W9H/g1Sib3h8gDoQfb6XsjgQSwXDvOVw7P3qni54pdfWSHxaI7LUU6mZtWVkZQQ1S7+Vt8KJ8vUFSzVgg7vG6Ak9VjMfxRbRb/G9rxsOaOagY2dqXB89gZDJqRKcRpa8YkUGCumF71wnG77zBN0fP00zmtk6H4RKFr6AwIIiuP5yjgx7VMobdWvpzoN3Cr/KjEMBcd0oWggtwZr1WxYCE3r82u0uMypOECmj/+9pWpcMZEsBcq3GhFkYLRALkGKW3GftM/0w9WaakdfAja77AoR/G+6565aBW0OPVFxildAfbUmqfDXa924KX5vSSQrT/rhfFsCo7gPYe4jI uqEwUkP/98mStz2CUjJeV4+RfyhUx7LUyRbgsg4vhKwjUNyVa1T5XM3EvDoZivTgrl0+MaAXlhXIjdFFBKW0X4gxg== 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:(13230016)(136003)(39860400002)(376002)(396003)(366004)(346002)(38070700005)(316002)(66446008)(44832011)(122000001)(7696005)(478600001)(66476007)(64756008)(54906003)(110136005)(5660300002)(52536014)(4744005)(2906002)(186003)(26005)(83380400001)(41300700001)(6506007)(86362001)(71200400001)(8676002)(76116006)(4326008)(8936002)(38100700002)(66946007)(55016003)(66556008)(33656002)(9686003)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: hxr5tpLONZGC4O34Hw5ogbi/lL7ozeDCQvXceMTZS4/op2e1x+3vJ03erQGZuK6BEVbtlWaJTXkIj7XMWtrBvX/wPMGq79UYdgd/49I1kHDp1MnNiXZ0/onWnGRvNr6nNAron11NLHFAwkVcUr6WgiGm6W/q9lE9oHjlYRcZx1yvL0/XppHMBhjo2Oc2IENNliYXVVjs9fKqDf/h/5nVIyhs/UqXKxVwEhGAwE3GWlu9ey0XRYM9xxPOBhwItTbHizx3p/e/8sq2tQ4zKalHBWmEDmppLYRJLkajYXOR36jLYQukPaFUlZjDyz7bcWmcbjnaRIQRWPIRqCGmHVPKKPN1m1PpmXNtfN5nfT5mW550UUmd5nMS+qPBU6H+1I/aJ4l5LLvzTYrJHeyulV4c4NavVVBlm1btqNRo6ftSPU6D52bJAeL8j2ogWSlfVz1O4gyZDQUnvgWePvgwGpyUn2RN4Xg/d3tNAYP+ZN6R0ENEq6G8bWNs4Ng4qp0AoUfF4R5wxa9zNcE0KTFp3ckDoABaKpysljcp0I7o0t8/eTXAKkT8nkU2IymMJCJ8RgzWNN9vvJ5pBDWpxZtNdnEe80wQmHcQ+MGhdt2z6JeEtgOiNp59WpWCZXHny91r0EO0x7mBX2egFv3XZhNVCABVRsx6k+FVoAnjLvkdcjmpA86rWY7/xljp7Kk5bBs8vYtxcBgcI6YK5IUhp6WXvKf/Nki9t6r7KR2rnusLHIZ7jZfQBg94iSwsmZ/eGY wC+5bdL+O5+O4cUVR4Lnd34oesOLh+dobB4oMhBCSXELxVN+/oLK3HQ0j9S6SCfaFmQHjNfcu4Al0J9mt4pVWVcPFoYM+CBYlF 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: 9d90ae9d-e559-48d6-67f6-08da584ae05c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2022 14:39:44.1010 (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: tUZNXy5w1DOk7pTjy6F0uiouqCogHlGCHnc9ru0PSJ3h73WPOyr+DQs3APW+MS1C9VYotFbPmK+7PO6VzRYUzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR10MB1364 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517, 18.0.883 definitions=2022-06-27_06:2022-06-24, 2022-06-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 phishscore=0 malwarescore=0 mlxlogscore=522 spamscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206270064 X-Proofpoint-GUID: KmvHgHZW9R2f2MFLegt9JWLKS2XGBVE4 X-Proofpoint-ORIG-GUID: KmvHgHZW9R2f2MFLegt9JWLKS2XGBVE4 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:235465 Archived-At: > But the point is that alists has several more advantages: counting > number of keys is twice as fast, iterating and/or transform the > collection easily done with mapcar, mapcan, dolist, mapc etc. Plists > have no real advantage from their structure. Alists have a zillion advantages over plists. That's not what this enhancement request is about. A similar situation exists between vectors and lists. And even among different numeric types. And even between Lisp symbols and strings. It's the case that sometimes users use a type that's less useful than another type in some context. That's irrelevant to whether plist functions could benefit from a TEST arg. IMO.