From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.bugs Subject: bug#25929: 25.2; plists and map-* Date: Wed, 29 Mar 2017 17:36:41 +0200 Message-ID: <87shlwrt6e.fsf@petton.fr> References: <87k288p2oq.fsf@gmail.com> <87k288kkqr.fsf@petton.fr> <87efyfluvi.fsf@petton.fr> <87efydlxfh.fsf@drachen> <878tnxa5l4.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1490801859 30737 195.159.176.226 (29 Mar 2017 15:37:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2017 15:37:39 +0000 (UTC) Cc: 25929@debbugs.gnu.org, Stefan Monnier , Tino Calancha To: Lars Ingebrigtsen , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 29 17:37:33 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctFf1-0006PK-IN for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Mar 2017 17:37:23 +0200 Original-Received: from localhost ([::1]:59643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctFf5-0004Sp-KY for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Mar 2017 11:37:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctFek-0004Ni-Es for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 11:37:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctFeg-0003pH-Mq for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 11:37:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctFeg-0003p2-Fc for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 11:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctFeg-00062b-4F for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2017 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25929-submit@debbugs.gnu.org id=B25929.149080182023213 (code B ref 25929); Wed, 29 Mar 2017 15:37:02 +0000 Original-Received: (at 25929) by debbugs.gnu.org; 29 Mar 2017 15:37:00 +0000 Original-Received: from localhost ([127.0.0.1]:51484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctFea-00062I-8D for submit@debbugs.gnu.org; Wed, 29 Mar 2017 11:37:00 -0400 Original-Received: from petton.fr ([89.234.186.68]:38583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctFeU-00061z-JA for 25929@debbugs.gnu.org; Wed, 29 Mar 2017 11:36:54 -0400 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1490801802; bh=QZXDfH4878qGb6B2a8Pro7pV3WLAdy54l+boS50YNGU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=UoFENZAGeL2IjyDlfN/tFePniPnMt2UJwtvDuUCjWYiwOIdAInN/Y569m2lWwXj9K2uEWq0QD1nAqkf8jaFZzDJ/GX1MC+KplDiQ5iXB03VnjEkTlZnsrKcrKn6sWcKcZb0rEhIDwCpQJ+AGlWdVuKRWIcWzyKspHMUtJRU4JrQ= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131062 Archived-At: --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > A thing just occurred to me: Does the map-* functions work for plists, > too? plists are, like, the fourth major mapping structure we have in > Lisp. Not currently. > Wouldn't it be easy to extend map-* to handle plists, too? For > instance, map-delete (of course) knows whether it's looking at a hash > table or an array, but it can also easily distinguish between an alist > and a plist by just looking at the first element, can't it? Yes, it would, and was proposed a few weeks ago. > It's a bit hacky, though. But might be nice. It would. I didn't do it initially exactly because I thought it was a bit hackish, but I agree that it would be nice to have. Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJY29SJAAoJECM1h6R8IHkQusMH/iir7t7LulWDdyWlUoLZtv7z 36CyZ23VTXpNMqh3dyklzCKQuam/c4nLlZCzUFur/otpSwkqSwRFQrsSPursPyPp ntDhAHSIT/Z3vZ2bIt/AtSgGN+eExzAFw7AzhpWrMN0MRIMflLTBnkwUIh+JO1zN y0ct+eQfyL6yMuEu17mhPRLNDyk30V6qM5C+sDx6g8Fb4Cf4pe/1BPrj7YA472C9 csOqM9OUZAvm3yqUFv9yZvL6Hzy73kqEB5fV1CHyAvPCKjLL3ZAN3ueKz7WznBHd kit03AHIZOh4xGaf5W5CPa9FoBnD8oOs+QlEx1bb5Rb6dyeBKQ3ugl/d4ZD/6pc= =wlwc -----END PGP SIGNATURE----- --=-=-=--