bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38375: 26.3.50; map-contains-key can't detect nil


From: Juanma Barranquero
Subject: bug#38375: 26.3.50; map-contains-key can't detect nil
Date: Tue, 26 Nov 2019 00:22:07 +0100


On Mon, Nov 25, 2019 at 10:38 PM Damien Cassou <damien@cassou.me> wrote:

> The code below inserts the pair (nil, 'value) in a hash table. I expect
> `map-contains-key' to return t when passed the key nil as argument.

It does in 27.0.50:

ELISP> (let ((map (make-hash-table :test 'equal)))
         (puthash nil 'value map)
         (map-contains-key map nil))
t
ELISP> 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]