GNU bug report logs - #6581
24.0.50; `equal-including-properties' uses `eq' to compare property values

Previous Next

Package: emacs;

Reported by: Christian Ohler <ohler+emacs <at> fastmail.net>

Date: Wed, 7 Jul 2010 15:15:02 UTC

Severity: normal

Tags: confirmed, patch

Merged with 35921

Found in versions 26.2, 24.0.50, 25.0.94, 29.0.50, 24.5

Fixed in version 29.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 6581 <at> debbugs.gnu.org, Christian Ohler <ohler+emacs <at> fastmail.net>, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#6581: 24.0.50; `equal-including-properties' uses `eq' to compare property values
Date: Thu, 21 Oct 2021 11:05:57 -0700
[Message part 1 (text/plain, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> The attached patch should fix it.
>
> The patch looks OK tho I can't see why you add `intervals_equal_1` to
> intervals.h (instead of marking it static).

Me neither, fixed in the attached.  (It was an artifact of some earlier
experimentation that shouldn't have survived.)

>> (compare_string_intervals): Call intervals_equal1 with third
>> argument as true.
>
> Rather than paraphrase the code change this could say what's the
> intended effect of passing that arg.

I'm not a fan of the GNU ChangeLog format, as it seems to encourage bad
habits like not useful descriptions and massive patches (as opposed to
patch sets).  In any case, I've made an attempt to force a useful
description into this clunky format in the attached.

I also see that ert had an inefficient re-implementation of
'equal-including-properties' lying around as a workaround for this bug,
so I've fixed that up in a second patch.

I hope that Eli or Lars could say if they prefer the first patch (with
the bug fix) on emacs-28 or master.

The second patch is not urgent and should definitely go to master.
[0001-Fix-bug-with-string-values-in-equal-including-proper.patch (text/x-diff, attachment)]
[0002-Remove-workaround-for-fixed-Bug-6541-from-ert.patch (text/x-diff, attachment)]

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

Previous Next


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