GNU bug report logs - #47368
28.0.50; map-elt returns nil without "deprecated" TESTFN

Previous Next

Package: emacs;

Reported by: dalanicolai <dalanicolai <at> gmail.com>

Date: Wed, 24 Mar 2021 22:54:02 UTC

Severity: normal

Tags: patch

Found in versions 28.0.50, 27.1

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 47368 <at> debbugs.gnu.org, dalanicolai <dalanicolai <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>, Nicolas Petton <nico <at> petton.fr>
Subject: bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN
Date: Sat, 27 Mar 2021 00:18:10 +0100
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:

> Just some code archaeology for more context:
>
> - Pre-Emacs-25 map-elt used assoc.
> - Emacs 25 map-elt used alist-get without TESTFN.
> - Emacs 26 map-elt gained TESTFN at the same time that alist-get did,
>   in https://bugs.gnu.org/27584.
> - Emacs 27 deprecated map-elt's TESTFN.

And `map-put!' has been added recently.  For alists it compares with
`equal', and it's used by the setter for the general `map-elt' variable,
so we currently don't have consistence.

Michael.




This bug report was last modified 3 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.