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 17:41:44 +0000 Message-ID: References: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> <87edzawcv8.fsf@gnus.org> <50781052-27FB-4FA7-B34F-A138EEEF7AAF@acm.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="40854"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , Lars Ingebrigtsen , Nicolas Petton , Stefan Monnier , "47425@debbugs.gnu.org" <47425@debbugs.gnu.org> To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 19:42:45 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 1o5sl2-000AOJ-Fq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 19:42:44 +0200 Original-Received: from localhost ([::1]:45926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5sl0-0003UZ-Ox for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 13:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5skM-0003Sf-Nh for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 13:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5skM-0006Qq-FD for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 13:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5skM-0001Vy-9y for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 13:42:02 -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 17:42:02 +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.16563517175810 (code B ref 47425); Mon, 27 Jun 2022 17:42:02 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 27 Jun 2022 17:41:57 +0000 Original-Received: from localhost ([127.0.0.1]:53300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5skH-0001Vd-5o for submit@debbugs.gnu.org; Mon, 27 Jun 2022 13:41:57 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:49206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5skD-0001VU-Ua for 47425@debbugs.gnu.org; Mon, 27 Jun 2022 13:41:56 -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 25RG8SP6001846; Mon, 27 Jun 2022 17:41:48 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=3irhk1S5+cpzxHR/HSvQe6h2y2pI78iff/P/FimYF4Q=; b=QVfP/86Vvtj0LWgT5EOZUnpwl19bmMf1fA8KkJ0J35RQ0gekPgBAVkNFLYzJ/TK4QiMM lWYgJHVg4kB6YTLqKkrHi2FSzLvW8kd+LL2jSn0UbdS+3INjrJvnYn+5eg1hyCOwh4wq ROU/ytqRYz9rZbMuObxEqyaJVq/MZXEAOubysM9Arhh6HSPVxDr3k0EGV0hsikK8VURN zV6I62YBVF8T7BAS7tj2Z1NdzF1GPZVwqK2yObT5Yxau0ByPQ37xKwBC/YLGqwhiaaQG FfV1oCWTBQ0mF2QgtRLzQaWwPVKySE7skVInf/zBoS/BpJ6GmrYMPZ9VD+zmhM68jLcI Vg== 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 3gwry0byqc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jun 2022 17:41:48 +0000 Original-Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 25RHYnMY004752; Mon, 27 Jun 2022 17:41:46 GMT Original-Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1anam02lp2044.outbound.protection.outlook.com [104.47.57.44]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3gwrt7gnaj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jun 2022 17:41:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mH3Bj3ff2jXDpqqNUFby6lpEvvS+BaKNVikKfFkDOCwDPyV2u2sffpK+abe9zbtIFufFqBvzvy+UI3BUrzQ5mB92TJ1+RjNlzRQ7OJYOFfdcal9XmNTT5DrkOnj/EZLJ/vBmrs0kSWH7gdVrLB7vozAo72RKK5rbpEuI4TXWEcrukZm3XXNicphZXQKxKqKImvXsAUpsNQu77JMFE+nkgeg4Ni8gh3qZlrHXd+z8t1VPG/bW80GEl3tEZZic07McGdxfiRjzw8s7cSp59sW2cDr/FXjkrB0QBB14mWbJoj7tEG6JE0U9PfxqbC2ChJZtCfZx/wlO5kDBnkpjFamBNQ== 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=3irhk1S5+cpzxHR/HSvQe6h2y2pI78iff/P/FimYF4Q=; b=Q015YTwqpd3SvKFHUxee9d0+Oi+qFQeyrf2EoNQQxfrX0geYpjVfc4K3dPFmVlSebDOfZzggomw1rMhxa8l+gnvJdpfhEbcWzq8rGgKt5pvJZgkR0vwftGmFQlr7xXtzY8JYn4WosDZ4jEcPM/0YDHyWypr11xIpxrCAIGpxmbK7ImS5N7qb26sWQ1YA9/lEGV+n/sY7gnGPMYNxb2oyP8OnQdAMdQEOs8E5Hx6t0q7PEWU+JujfG/PVJOQJtHBTcSwlXJT8UVlb//Tm5MTZ5mP8sPHB4SVR+6WiDR+6DNG9/KFm41KPUSSSeyNIY9UtvO19p0rRYX2LLK3pfKKIUQ== 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=3irhk1S5+cpzxHR/HSvQe6h2y2pI78iff/P/FimYF4Q=; b=PhBilTtZemhAqsuQP4Cu0cU0n8pOOr9PuTPbeE3K8CCVGZdOow/zmssKOXdJLVpbtGdLswHpH/iYQGbBU1rxPNpIrQlZ1F5JeM5viRy/+1A59Ff389beBFOzI+isZ0pbwVjxhX4IXxT6huKuzlWSNeFzKZKe+aocGiu/9+E5pfY= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DM6PR10MB3948.namprd10.prod.outlook.com (2603:10b6:5:1d0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Mon, 27 Jun 2022 17:41:45 +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 17:41:44 +0000 Thread-Topic: [External] : Re: bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Thread-Index: AQHYikooUwGfbrzsQUKb+naypPkUZK1jgRaA In-Reply-To: <50781052-27FB-4FA7-B34F-A138EEEF7AAF@acm.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 82005e95-4fa4-485c-fffb-08da58644da3 x-ms-traffictypediagnostic: DM6PR10MB3948:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fsYWQ9um71E29SPZD8fTQZyznaolSw+LTaBNg/G4n2f5v+ZF5eYSMm+wDrUOv3OGJb8B1ywbT1ayhN2ZYaOj0fufDX+Xdp9mt5aiJCBC0TydB7CKBYud+Xlzx5V8tC542bvRvSQDHfLS3ohXC7T5Lb2koRMZI67h8kQb24dqg2JUy4QTPfCg+NuTJ276zdpYxZxIVUECUl6jqpNvTkRk31y0g8/THIBPaLETcPxrE8TAHnJf3GD9a+wAOFGC/7nUYtd/C2WpN0DAQ/nsRep2kolFwANWFXf+2FSORl8ObP+4LMa2HvRsHNpm6jUTgXIccXuPqp/xVj0vcxFYzUwKqS1fbzAQfjPitChpJEHL9oYP2iYg4N3k9B0QAc/nvFMBhQ0q8YtmA4DcN1ztfDr1Dv18DpqbeOn3EYXk6amLC8BZC+708FlVFoYVttfx1SWQgDIy0T19orYjSKZPYcEU1QD21Hk5U91JueXH+244LJZzI4r4Kvd0thBxkg7apmCdWoArAB3OB+63xPHatzHX6YwRyLXraHbML6FxZ0cZ6R/wHvyCXxzUIhF6RuzHV1IJ0RYdfedLewTPTKzVjTAQVsdZyaHhiZekiXqhRxatcQhoVOCqXQn0FNIhZbpDWfwVtG+NDZ3Z/TOwW46LJMMMicAsAxckUdCWTND7S1evm8ncLgw1nQkYJ8aer85d7TxNPC2/W8dBfNURsxd7MdXsCblgDDpEn6zP32+IulpMOG6rN3IS3rljW+jsEsWmJ j1y/KDhTSkLuu5R70x5RS/cz38V/tzpdP1d+TbpCCckcHnII8a6Z06jH3hNARbDNyV49o6S2fSPhoiNuqYg9yWKrQ== 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)(346002)(366004)(396003)(7696005)(8936002)(41300700001)(66476007)(5660300002)(66556008)(55016003)(2906002)(33656002)(38100700002)(44832011)(66446008)(86362001)(478600001)(52536014)(4326008)(316002)(54906003)(71200400001)(76116006)(38070700005)(6506007)(186003)(9686003)(8676002)(26005)(122000001)(64756008)(66946007)(6916009)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: eKXmVPLOE2jPIPKCYg7T1/4y1bzf2aIBQ4p12utJkN4Z41yY4pCCIFBIEJIx9mYjBXDbwVnbD+ZdKqCLrLGwu9JXHUBl6gTfWTBOF98Liedd6CFNY0ehu89/qzZu6za5lHsMo98x7ENqVkYWNIjYDIYcVQVDhSgB5w32avirAUIDuk5TMtMbz4St0y3t4DyMD8ye+tmq2aaOowiAWY+fhhvDcxf2u772T1r/xPtz2nAJ+voZgtvs7PF5jyQoHJwrRSdmPYBYtBlp6CuTRuhAgSvcH3t6KNymsx7Z4pNgFrLuIXreiAu5sfUBNX+B+s47cZtZsrFfnUsWithr4dO+y2A9Wx9oTN/zx3vnS6EaiweAEAiZO54O6CTDhWNjQLXqOQCSfRmN3H/FodO0H9mGmmiSZwG43CDBl6PbPz3KtWlAH6Kkw+L+2kpsZYJwTe2LYUNyfkqG/XmEZhLCPofOGt0Qw6a6yGqeBy6isIShelKNR0eRw2fBkoNBBYNTOemQ3GugnHqED4zG1lun6OyO4Qj8GPeNier4glJZpUaD+09iZzSJBvZEQP4ETtumv3rqd5A9TzAGME/QoHdd8naZK2uuE3loop9JceziqahAhcr/5cKNmA+PLChNvz+XdcRyNg/3ImLyKqGG7acSx78lWAxm9oDr2EUZmw/4u6T+D7YQlMl1jIo8CI53YD9td8FX6kbhwMiOE+MAOAcCkfGqYWj8R7jvmkuFXG1zEmaXl8ysC6q4VmKVqQwrO1 wb+aKl1TWHGilPxBxeLLPtZx5LWolxPq9jn7dXUl7mOwN7TxDNdbuYdAoymyQhpahTr9lYNhZwzcu78f8kxSAQ1j44UCIXhnqB 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: 82005e95-4fa4-485c-fffb-08da58644da3 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2022 17:41:44.8601 (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: vpJitZulWZlve7/CMQ9b5bixNMPRq4e188eEBFucR/l6qtNpoS4Fx6ylYODTEMfQ4cDbUz8vSOMQV2W37oTAGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB3948 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 spamscore=0 bulkscore=0 mlxlogscore=424 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206270072 X-Proofpoint-GUID: Pu_EwXuj561c067YLO6fttABMQfTE4kE X-Proofpoint-ORIG-GUID: Pu_EwXuj561c067YLO6fttABMQfTE4kE 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:235492 Archived-At: > > And it doesn't say anywhere that they need to > > be distinguishable with just `eq'. >=20 > Operations on property lists in Common Lisp use `eq`. > There is no option to use another equality predicate. Yes, I mentioned that fact. CL was of course defined 40 years ago. And its users, especially back then, didn't come from backgrounds that commonly included using key-value with string keys (such as JSON). And CL didn't change pre-existing functions (such as `remprop'), to give them :test args, as much as it added such args to new functions. CL sequence functions have :test, for example. (And a plist is a sequence.). Also, unlike Elisp, CL doesn't document any use of plists other than `symbol-plist' - it specifically didn't adopt the use of "disembodied" plists, for example. ___ I don't think that providing a TEST arg will needlessly encourage the use of non-symbol keys. I don't see how it will hurt, at all. But if someone thinks it's very important to discourage the use of non-symbol keys, then that can be added to the doc string. That's not equivalent to not allowing a TEST arg.