From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Date: Tue, 28 Jun 2022 17:40:10 +0200 Message-ID: <878rpgokyt.fsf@gnus.org> References: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> <87edzawcv8.fsf@gnus.org> <50781052-27FB-4FA7-B34F-A138EEEF7AAF@acm.org> <87czeuuil6.fsf@gnus.org> <878rpg24mz.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "47425@debbugs.gnu.org" <47425@debbugs.gnu.org>, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Nicolas Petton , Philipp Stephani , Stefan Monnier , Drew Adams To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 28 17:41:12 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 1o6DKw-0004Ae-CF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 17:41:10 +0200 Original-Received: from localhost ([::1]:45240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6DKv-0008D7-4D for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 11:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6DKo-0008CC-QE for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 11:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6DKo-0000ZJ-II for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6DKo-0008DF-Ef for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Jun 2022 15:41: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.165643083031524 (code B ref 47425); Tue, 28 Jun 2022 15:41:02 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 28 Jun 2022 15:40:30 +0000 Original-Received: from localhost ([127.0.0.1]:56142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6DKI-0008CO-42 for submit@debbugs.gnu.org; Tue, 28 Jun 2022 11:40:30 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6DKD-0008C6-HM for 47425@debbugs.gnu.org; Tue, 28 Jun 2022 11:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=z9aXgga4XUiuR5jfSfwiIuT/7F37fBVrhuomHYOYM88=; b=uxgpQHCMWI3l6QJCjpG1amxqFc 9g0b0QoQIpOkuPqDZXjZhDdpeFwTWornRu6n03GlnnOUaKWsvBdPnNY3YeHW6ALzVlqoC0GzhSZkr cBfcJDuWifkswIV7hy64V1jc2R9jY5mQDmaK3WZxOjszXUlbiqNnOEXndr1OEDNi/kjw=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6DK1-0003ji-1P; Tue, 28 Jun 2022 17:40:15 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEWrqKbGw7nU0ctZ TlOic1wcGB////8kETncAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YGHA8fI/0nd2kAAAG0SURBVDjL dZNLcqwwDEUFYQGW0wvArIBXgjmNlXlXOd7/Vp4kfyCpjgZg63D1swEYUM0vCy6ISzF0BEMhfrmb ASz2J7hLAn6+BQHxMf0BHLwDuj0a+ClAt72pyrarAd8kwRfiw1qSLCbB4NxYw61wJQkOpJqhA2hl CQBwgyWZLXnLqkAV2od23isNFSwVdAUqGN+A8BvcYsXjBqrfsw9oilBHUvzz+TgwdCAK6UzZYwzM oFsDe1d8nAKIBKCCpJVjkEjxfDDzdpbxSihATQ+RnpMAHut5CFik2fmDaFP/5itICsYACuLG8V8o Z2DALXBE2lNMxB69bwCeLhLRnimnWI8AXQaYnjCJn7IYjeIMFQBqhj2bnV4vwOAUyHFKhgqeFki+ zsDHPMUmyKs1LA+G/JqnHimXdsBscHwppDJwdkHAz1Jt2s2Z8zdP0imRqORucBfkJPWkL13JryaA OhgE2GfAg1R7AWYF8oINgC6Qt9gU3wBXUQKogZdOqvtzyg2sAmwl+90mU8GmI9TVy41+DLpqoE4k UdIq6AJxp3RLsjfA99w3MHGZVAdUQZSZ/VDIoanjP9BrucgzTGP0AAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIyLTA2LTI4VDE1OjMxOjM1KzAwOjAwMojc9wAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0w Ni0yOFQxNTozMTozNSswMDowMEPVZEsAAAAASUVORK5CYII= X-Now-Playing: Various's _DJ Kicks: Kamaal Williams_: "DJ Kicks" In-Reply-To: <878rpg24mz.fsf@tcd.ie> (Basil L. Contovounesios's message of "Tue, 28 Jun 2022 18:23:48 +0300") 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:235557 Archived-At: "Basil L. Contovounesios" writes: > (let ((plist (list :a t))) > (setf (plist-get plist :a) nil) > plist) > ;; => (:a nil) > > (let ((plist (list :a t))) > (setf (plist-get plist :a #'eq) nil) > plist) > ;; error-> wrong-number-of-arguments > > Do we want the expander in gv.el to understand the new argument? Yup. > There's also the question of map.el. Custom predicates are deprecated > there, since they rely on knowing the underlying map type. Do we want > plist operations to understand custom predicates regardless? Using the map functions for plists doesn't really work, so I don't think it matters much. That is, if you end up with a nil MAP after doing some deletes, you suddenly can't put anything into the map. I think expanding map.el to try to handle plists was a mistake -- it's a fun hack, but can't be used meaningfully in practice. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no