]> git.eshelyaron.com Git - emacs.git/commit
Fix bug with string values in equal-including-properties
authorStefan Kangas <stefan@marxist.se>
Wed, 20 Oct 2021 12:16:07 +0000 (14:16 +0200)
committerStefan Kangas <stefan@marxist.se>
Sun, 31 Oct 2021 02:02:32 +0000 (03:02 +0100)
commit8227d1273e2b82dbed14c0cba06959083d377745
tree91ed3154fb98aa077ede3d78e8a0ebc26c85499f
parentda67e888d5360297cdf20cd3d2a1148727d16e5a
Fix bug with string values in equal-including-properties

* src/intervals.c (intervals_equal_1): Factor out from
intervals_equal.  Optionally use Fequal for comparison of string
values in property lists.
(intervals_equal): Update for the above.
(compare_string_intervals): Use the above optional Fequal comparison
to fix a bug where 'equal-including-properties' compared strings with
eq, instead of equal.  (Bug#6581)
* test/src/fns-tests.el (fns-tests-equal-including-properties)
(fns-tests-equal-including-properties/string-prop-vals): New tests.

* test/lisp/emacs-lisp/ert-tests.el
(ert-test-equal-including-properties): Remove parts testing
'equal-including-properties'.
* lisp/emacs-lisp/ert.el (ert-equal-including-properties): Add
FIXME that this should be removed.
lisp/emacs-lisp/ert.el
src/intervals.c
test/lisp/emacs-lisp/ert-tests.el
test/src/fns-tests.el