From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#47425: 26.3; `plist-get', `plist-put' and proposed TEST function Date: Tue, 28 Jun 2022 23:33:40 -0400 Message-ID: References: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> <87edzawcv8.fsf@gnus.org> <50781052-27FB-4FA7-B34F-A138EEEF7AAF@acm.org> <87czeuuil6.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21146"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47425@debbugs.gnu.org, mattiase@acm.org, nicolas@petton.fr, p.stephani2@gmail.com, monnier@iro.umontreal.ca, drew.adams@oracle.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 05:34:21 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 1o6OT6-0005GJ-Q0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 05:34:20 +0200 Original-Received: from localhost ([::1]:33846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6OT5-0006qb-AX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 23:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6OSo-0006qA-4O for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 23:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6OSn-0004cL-Si for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 23:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6OSn-00030M-Lw for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 23:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 03:34: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.165647363211536 (code B ref 47425); Wed, 29 Jun 2022 03:34:01 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 29 Jun 2022 03:33:52 +0000 Original-Received: from localhost ([127.0.0.1]:56795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6OSe-000300-Hk for submit@debbugs.gnu.org; Tue, 28 Jun 2022 23:33:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6OSa-0002zk-6Z for 47425@debbugs.gnu.org; Tue, 28 Jun 2022 23:33:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6OST-0004b9-65; Tue, 28 Jun 2022 23:33:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=s3qmDq8Do5fEoLraXeePr4jfzOzfaD71j0wmmb6/cHs=; b=U1fv1n3HC1hm R34HtCqh4FXjcVxkKnFZ+mHmxXI6nzc8QxN1jAkxd80wB89JTjuoqShnP3EvS/ggJjTjpEtaLEhJB LyGYKTe94cocqlLoTMW1Jz9aejJYzljsscTnjNOWmfTSgqRbOi9mdqKpqzvtn2VeClSSdjUJxv9n3 oAJ76qh379yUYBPgSH5EcMNkGWYIOwC3JAZjOo03Z/O60hLtvxDDVH5DDrzUPi4yCRJgi/hsbYG0Z yb3qx44et6Id2PLKA+9pWkMoOvPWhlxYiJM91I8WG6VLfC6OVVyNgp+kkl+3aInyy5sng9ARHKHXo PUbu8pxZ2rwDEUrezhnDoA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1o6OSS-0005cM-BT; Tue, 28 Jun 2022 23:33:40 -0400 In-Reply-To: <87czeuuil6.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 27 Jun 2022 19:22:45 +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:235593 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] CL-style keyword arguments to modify list operations are clunky. Unless we implement them in an extra-complicated way, they will slow down the usual case, too. I understand the motivation for proposing this change, but let's solve it in a cleaner way that doesn't invite copying the bad designs of CL. Here are two ways that occur to me. * The applications that want to compare property names with `equal' could canonicalize those names. For instance, intern the strings you want to use as property names, perhaps in a special obarray. Then you can use `plist-get' and `plist-put' on them and get the results you want. * Define functions `plist-get-equal' and `plist-put-equal'. Instead of complicating the definitions of widely used functions `plist-get' and `plist-put', it will define two new functions that most users won't need to pay attention to. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)