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: Mon, 27 Jun 2022 14:44:18 +0200 Message-ID: <87zghyuvh9.fsf@gnus.org> References: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> <87edzawcv8.fsf@gnus.org> <6BBB5BB7-3552-4A98-AED5-96EF3B688B4E@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31261"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Philipp Stephani , Nicolas Petton , Stefan Monnier , Drew Adams , 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 14:45:23 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 1o5o7G-0007vT-Ow for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 14:45:22 +0200 Original-Received: from localhost ([::1]:32970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5o7F-00067q-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 08:45:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5o6w-00067R-6G for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5o6v-0008Ag-Rb for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5o6v-000850-PZ for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 12:45:01 +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.165633387731009 (code B ref 47425); Mon, 27 Jun 2022 12:45:01 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 27 Jun 2022 12:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:50265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5o6X-000845-Bw for submit@debbugs.gnu.org; Mon, 27 Jun 2022 08:44:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5o6V-00083s-HW for 47425@debbugs.gnu.org; Mon, 27 Jun 2022 08:44:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=0cgz5ReQIT0Yemn47yFFlP91sBYC8mrx0AfeVPomRkw=; b=hQAMqXyY3HxiPdbPYsL6QcRiAW L+cmDEMwsvtYw3pmBk516qO7Q8HYW+M6QSjTcBXIHFmZgaCT3zR5FaO75Su91FbHh8WHXHMLzDwNN Kq4l/xTLSby7OQK8SqCHH9FqOZIM+IUP64dWhSwG11TXw+B2jZ7/hU9Wk0vKIVuFILcw=; 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 1o5o6H-0006Be-7E; Mon, 27 Jun 2022 14:44:23 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXr3am8p4qbeFpj P2ikWpr///8CVxArAAAAAWJLR0QF+G/pxwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+YG GwwoJoLbpTIAAAGHSURBVDjLbZThgYMwCIUTvQE0LmCSBaowQO/C/jPdA7VJtPxR+cKDAK1zl/kE m9zDzJ/S+vTHGRYeMSEGDQC5B/hMsH2+hQxrYBEBCbEDaSaBZy4UOy0fA/9aJG1h7ZSyHG9LrxU8 v88jvVYKfBUDrSbFukBpRqRprW0KpM6TI+dGasGsKfKeAX4o1uxL0hREBcBTos/liRSgJ7t9lNeV m1gPLUSbAqELLIX10AFGFi5nABMLTYt2d0OAUDnqGoVZCuTM0OQim4GsQC4/zhQph5KBYn4hDWDT GhknMCRg1TEgL1M6QaEKrG6+AcQKWuBQ5wlOKbj3dFxcP2oEwNlf/mMDxR5Su5hjJkt6GIU4feak QK9gF/pMyq85ozakIP71RJ/N9jHP6wLEOqmhgiFi3N7AZiOsQMvIADYiij0Y9iWS+wJ0gi/XSSH5 27bT+BO4tB/bG+7gWuvQ5Gh+E41UCHX3rKpUQePHDlfA38GQughKsYImR3uPRF259Q8l5abcIYW2 xof9AwibZqK8bpu/AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTI3VDEyOjQwOjM4KzAwOjAw Zj+i6AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0yN1QxMjo0MDozOCswMDowMBdiGlQAAAAA SUVORK5CYII= X-Now-Playing: Thee Oh Sees's _Help_: "Destroyed Fortress Reappears" In-Reply-To: <6BBB5BB7-3552-4A98-AED5-96EF3B688B4E@acm.org> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Mon, 27 Jun 2022 14:27:50 +0200") 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:235449 Archived-At: Mattias Engdeg=C3=A5rd writes: > Indeed. For example, key-value pairs cannot be shared between > different plists, and getting the nth key takes twice as long. > There should be no reason to promote or expand the use of plists. If you say "I want the nth", then, yes, it takes longer. But nobody does that with a plist or an alist -- they say "give me the value of key", and that's an identical number of operations on a plist as on an alist. (Plist is car for eq, cdr + cdr for traversal, while alist is car + car for eq, cdr for traversal.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no