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: Fri, 26 Mar 2021 22:13:42 +0000 Message-ID: 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="21001"; mail-complaints-to="usenet@ciao.gmane.io" To: 47425@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 26 23:14:46 2021 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 1lPuj4-0005Fv-QT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 23:14:42 +0100 Original-Received: from localhost ([::1]:47918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPuj3-0003Gn-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 18:14:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPuiQ-0002sU-E3 for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 18:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPuiQ-0000bS-0n for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 18:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPuiP-0000L2-Rm for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 18:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Mar 2021 22:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47425 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16167968361279 (code B ref -1); Fri, 26 Mar 2021 22:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Mar 2021 22:13:56 +0000 Original-Received: from localhost ([127.0.0.1]:42761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPuiJ-0000KZ-V5 for submit@debbugs.gnu.org; Fri, 26 Mar 2021 18:13:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPuiI-0000KS-AQ for submit@debbugs.gnu.org; Fri, 26 Mar 2021 18:13:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPuiI-0002o4-2P for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 18:13:54 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:45930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPuiF-0000Uf-Qf for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 18:13:53 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12QM9Wi4192740 for ; Fri, 26 Mar 2021 22:13:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=ZyvQasueOYXnQ0ABw0Dn72dkCjAwKoo+t5x30gFj1A4=; b=C7j2Ha+l+S72sUEkcivTYAH5btUfQVBFfEEjCsz1OfNMjw6rFbIaiSusbX9GA/lFmYUQ dT9TrsOt6sPAP54JRLVKtcERDCkaMikPoy6vOZAfaG6SZZ7a/l+PsuGBnYVDeOA9u596 crYKewuY9a1+rcSlgIxcSugtg9sCTLncCn6O3uGV+q/U6RhETp1feTVcTOdi66Ju3qA8 0g65/Kntic2k2EW1GBaaA/fUcAjmbIcLCe75cwU1WiWRR1ekbQ0/avZMq40HifL5YXTH gcsP7cnN2QRuTHDwv/FCdOdTDafI5hMKe/XheY2ibx7Xh/ZtUl0b6aJeK5FIy+py2WfG /w== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 37h1423gaf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 26 Mar 2021 22:13:45 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12QMBCcH106684 for ; Fri, 26 Mar 2021 22:13:45 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2176.outbound.protection.outlook.com [104.47.57.176]) by userp3030.oracle.com with ESMTP id 37h13y7r34-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 26 Mar 2021 22:13:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hx6iHnn9wJ5JXdmMF9xd9FbijH8JKVMBJO9fn5T4gtrGvrJxdRBBRZrOsY4uNgB7K99UCpFLKGuGoixLnis5OEtCWf5RzcwuYNKJtkSc3Wlk5oLzjq/FCZVeBMOmt4fxcdgQ/dw7TEp3ZxoWNiObBnvfRpfk258iwYp7MEdROgYr0UszTPumlj/b6ASWn2ctJLi7c0v0H4pP0++ZsZ+wW0bEmAJofY8eEJ5LfVvGsytZo+m9P348xD230po0M+Gj3jzJZQ34lMRr+2xyKT0XsZbNQV4Zu67t7JbLebGtY0pd0vaqL0XGV+QPIGCBMeeTPFc9JrEDQqGAaf9PmzJ1XQ== 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-SenderADCheck; bh=ZyvQasueOYXnQ0ABw0Dn72dkCjAwKoo+t5x30gFj1A4=; b=aMwH2XW0DvuIDzUH/MhWfV0DFwlVyJlVNsRwkHz237lYdZuRnJkjZXxOgvZDKp6ET91aYMU47x/YQDjC3o6ueQ3fDikJFLIWejD0Ki6N3H/6BIHw4TrC5odK11AkuN7FQDRst9PCEkOp8bzQUYL2nelOwRoSxlE3b+329WyaDlIthIUc9Lp40XxgWyl3yt0cnrZP37F++C8scwTw7ikWJTmXL0OOKujqmRmFXdT2bv8ujeoC48ZwcT8HFLXeTC3sNgI65oQlRsjTlE2xs14pj3AqA7iz73CeDNibe/pLjuWRKmSU3w5v/13ot7u3qnfDAraeWGFBnb1aPPVPrK5OyQ== 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=ZyvQasueOYXnQ0ABw0Dn72dkCjAwKoo+t5x30gFj1A4=; b=n7xVM84tYj6rbvdmtkWC/NYwFWMuFhmjX+7OBJ07B8Uws1rL6676V0cl4j6PC2u58otyiC59gHWZXHJ2RzNGOjFQCcQpMPIQxZe/Lz5gvj8yHFEjE5oi7tFfgqHLuVwsg446fui87iTPWhqnhG14MjkfBbmH9mJxQZ9aLZgysvI= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2592.namprd10.prod.outlook.com (2603:10b6:805:4b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Fri, 26 Mar 2021 22:13:42 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3977.030; Fri, 26 Mar 2021 22:13:42 +0000 Thread-Topic: 26.3; `plist-get', `plist-put' should accept a TEST function Thread-Index: AdcijTlucWJyPG/hRjGNffNRatDIDQ== Accept-Language: en-US Content-Language: en-US authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b1316a20-fc58-4815-6d8c-08d8f0a46a9f x-ms-traffictypediagnostic: SN6PR10MB2592: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U+uwvqlx5oixoa2KtyMRA3zAWVIKh69hnsS+SMUC74Iyp1Tk5UyTDQYOkxqmLKm3xesdEM46JgyT4auSLCyq5otXzvlpMIHfO4tkMrpbhjUOExuAnMqImaPQl2nTX83kRtlZSg3NlfOMUr799XhSZuW0FTpfVW4uF3zCWiOrdAKBQLvgjXcTVRvlsPvsk+/J7SJ/L6vDaJS5qjsBqstJ6Lp58l1MiK8Di09SYKyO0XFPYdysgxJCr0dESJJijGTHJe5kuyjleePJbfSty/o2wt3UuiJhWU/PwQMEoBlgrHpGwsxnf03mfr0Pyr2LK9dERqrtOraREudrrlRS4hKyWwpJcnUYyOHj/37pj4FG2t8QBbOftgKiSAV6QcAG83rD1T+at9McBPAHQYdeqnnYboXOqcsjyXBJ7UUtk9dN3rmV2dOHPYG0LKAjrJUmKFFA4jovV3KgoDdUZxlDU0SKFT5JLh/WSxJmmYGQGfx+10lPwnBxOujiNqzT80g6xnC68llwAZyFMV+APocKw879chMtfE4wqkndnc4lJBF4MNVZKpCvNb10fzZjeYJu5IZBKuhFxDpFCgk49CH8G8I49AiaALXShXWP1IWZEtfRzTcW2BAS6fq0I5mdMnV1nFQuxeMhzUQYc7rsj3nRUdbNq+yfS0sNsjy7k4hsy+kXX1XtinaJS5U0GcfocA3+eCTq x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(346002)(396003)(39860400002)(366004)(136003)(316002)(26005)(4744005)(186003)(52536014)(45080400002)(71200400001)(64756008)(66476007)(5660300002)(6506007)(66556008)(86362001)(44832011)(6916009)(9686003)(38100700001)(2906002)(8936002)(8676002)(33656002)(76116006)(7696005)(55016002)(66946007)(66446008)(478600001)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: VrZqdJx9lp3uNQiYNho6dT/ucQP1mz3nL02KmREXBEb+pt3Py0j6Bv1W2q/TEbS4KlioGMDxCGmLEqw5Xd8lScu9PvRIOQnLDTAYOkxdPqK1zqEqThAKGUJGU+oH7IzhsMcBQRbVheMAzTfO8Q+G6X3UDSIkSrCscORdWcN+RqwUW3DGUMk1UM/XetGOEPQ2Bs68dzG2ndgL77gusiIPmPbuaLLXb4ezwLT7Cp02F0l4V2/Xo4XCmLisPsWkHeKDjgE13O/BZt9j3DYnn66Kg1Cj0Wqz/WUH4s4fTgeO+mm8MUkQnCI/+8aulmA/srPMAB3+9u0cwOElVmjnc5xKtSqXy9QYiF0COFd+14cF1yVmEghrcS/I8rHymhffdkG/ZfpJqm+2Q05azrNO5F03Pa2WQE04v/whe/+p7wEJ933wrNSOU2lwI26Djy/HGx2hjGIEF5eYvGCtTtssiZ9s44TfABHB8GrOuoMoT2Bkp9vPXXRnRETluDyEWmfLa5NukKNM+u/zfWFJMAzldfTul08oMJ0imI15nUZtVAeH6e99Bcv0hzK0T1cDfLMkj4WuYVgUS8NB2FKDdqLpgsQZ98J32GmZOJwj8hG8iZlPl/luccDo0p1xKriN26i+TaTUULDlgLDFE6xXq9ZcB4DcnbPQqaTk8pLCHs0LAUUPrlxw8in+L70hjZC+1ZnDhTy5Dzxxvz3CAV5g6HRlG+DEiyRvvuOdGJO2XWuVjKPPOcR5AqVnLMkd1E7V2eaz if2S7oPyxp4mf1ZFoP2E+rRmWXLIvM2bxxQGv8oFyYeBuif7V2Nb8Y26P4RUQn3dr6BwQki+lGlQaFL3dN0h8Hn8CGSCLgwyRA x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1316a20-fc58-4815-6d8c-08d8f0a46a9f X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2021 22:13:42.6135 (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: OCp1/E12qLH0b8SZVfyDGhpQpreXCnXhSRpvN5fVJtL2oVz5U8Sb+cLdQrg1fJYTNYpAp30R61NhFc3YBlJe1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2592 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9935 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 spamscore=0 mlxlogscore=819 suspectscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103250000 definitions=main-2103260163 X-Proofpoint-GUID: T3865N_035OLzIW9CWtlryr4-uIxc63p X-Proofpoint-ORIG-GUID: T3865N_035OLzIW9CWtlryr4-uIxc63p X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9935 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 mlxscore=0 clxscore=1015 impostorscore=0 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103250000 definitions=main-2103260163 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:203081 Archived-At: Please consider adding a TEST comparer arg for plist keys. In Elisp, a plist key need not be a symbol: (plist-put (list "aaa" 1 "bbb" 2 "ccc" 3) "bbb" 42) That "works" (and no error), but it doesn't do what's expected, since the keys should be compared with `equal' or `string=3D', not `eq'. And if it were not intended that that work then Elisp would raise a wrong-type-argument error saying that the first arg isn't a plist. And note that the Elisp manual says: A "property list" ("plist" for short) is a list of paired elements. Each of the pairs associates a property name (usually a symbol) with a property or value. ^^^^^^^ In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor `Microsoft Corp.', version 10.0.19041 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''