GNU bug report logs - #38375
26.3.50; map-contains-key can't detect nil

Previous Next

Package: emacs;

Reported by: Damien Cassou <damien <at> cassou.me>

Date: Mon, 25 Nov 2019 21:33:43 UTC

Severity: normal

Found in version 26.3.50

Done: Michael Heerdegen <michael_heerdegen <at> web.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Damien Cassou <damien <at> cassou.me>
Subject: bug#38375: closed (Re: bug#38375: 26.3.50; map-contains-key can't
 detect nil)
Date: Tue, 26 Nov 2019 15:45:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 38375 <at> debbugs.gnu.org.

-- 
38375: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38375
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Damien Cassou <damien <at> cassou.me>
Cc: 38375-done <at> debbugs.gnu.org, Nicolas Petton <nicolas <at> petton.fr>
Subject: Re: bug#38375: 26.3.50; map-contains-key can't detect nil
Date: Tue, 26 Nov 2019 16:44:15 +0100
Damien Cassou <damien <at> cassou.me> writes:

> I agree, it is fixed in master.

Ok, closing.  Nonetheless, thanks for reporting.

Michael.

[Message part 3 (message/rfc822, inline)]
From: Damien Cassou <damien <at> cassou.me>
To: bug-gnu-emacs <at> gnu.org
Cc: Nicolas Petton <nicolas <at> petton.fr>
Subject: 26.3.50; map-contains-key can't detect nil
Date: Mon, 25 Nov 2019 18:15:34 +0100
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.

(ert-deftest test-map-contains-key-with-nil-has-key-in-hashtable ()
  (let ((map (make-hash-table :test 'equal)))
    (puthash nil 'value map)
    (should (map-contains-key map nil))))

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



This bug report was last modified 5 years and 236 days ago.

Previous Next


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