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


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>, Christian Ohler <ohler+emacs <at> fastmail.net>
Cc: 6581 <at> debbugs.gnu.org
Subject: RE: bug#6581: 24.0.50; `equal-including-properties' uses `eq' to
 compare property values
Date: Mon, 12 Jan 2015 18:23:04 -0800 (PST)
> I've just hit this bug today.  Half an hour wasted.

There certainly is *at least* a doc bug.  Users of such
a function at least need to be told how the text property
values are compared.  That's a minimum for the doc of any
equality predicate: say just what equality means in this
case.

Both the doc string and the Elisp manual (node `Equality
Predicates') are deficient.

In addition, a reasonable enhancement might be (now) to
accept an optional comparison (equality) predicate,
especially to be able to work around the designed behavior.

But I'm guessing that the default behavior could/should
not be changed at this point, because existing code
could break.

Just call out the *actual behavior*, clearly and completely.
Even LOUDLY, as this is truly a gotcha.  (And one needs to
check C code to see what the function really does.)

This predicate was added after Emacs 20 (after 21 perhaps?).
It's a bit surprising that no one has thought of completing
the doc - at least.




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.