GNU bug report logs - #22729
25.0.50; cl-union ignores :test when lists are equal

Previous Next

Package: emacs;

Reported by: Nicolas Richard <youngfrog <at> members.fsf.org>

Date: Thu, 18 Feb 2016 04:16:01 UTC

Severity: normal

Tags: fixed, patch

Found in version 25.0.50

Fixed in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 22729 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nicolas Richard <youngfrog <at> members.fsf.org>
Cc: 22729 <at> debbugs.gnu.org
Subject: Re: bug#22729: 25.0.50; cl-union ignores :test when lists are equal
Date: Wed, 24 Feb 2016 12:03:24 +1100
Nicolas Richard <youngfrog <at> members.fsf.org> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>> And that's because the two "foo" strings are eql here.  Apparently the
>> Emacs reader is being clever...
>
> I'm surprised because it didn't fail for me.
>
> As a test, this:
>     emacs --batch -Q --eval '(let ((str1 "foo") (str2 "foo")) (message
> "%S" (eql str1 str2)))'
> returns nil for me.

I was surprised, too, but in the ert test the two strings were
definitely eql.  Perhaps ert byte-compiles the functions, and the byte
compiler is doing the clever string thing?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 9 years and 141 days ago.

Previous Next


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