GNU bug report logs - #35921
26.2; Clarify how does equal-including-properties compare text properties

Previous Next

Package: emacs;

Reported by: Xu Chunyang <mail <at> xuchunyang.me>

Date: Mon, 27 May 2019 05:06:02 UTC

Severity: normal

Tags: confirmed, patch

Merged with 6581

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

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: Xu Chunyang <mail <at> xuchunyang.me>
To: 35921 <at> debbugs.gnu.org
Subject: bug#35921: 26.2; Clarify how does equal-including-properties compare text properties
Date: Mon, 27 May 2019 13:05:14 +0800
Hi,

I expect the following returns t, however it doesn't

    (equal-including-properties
     #("a" 0 1 (face (:foreground "#bcc201")))
     #("a" 0 1 (face (:foreground "#bcc201"))))
    ;; => nil

it seems equal-including-properties uses `eq` to compare text properties
instead of `equal`, but the docstring doesn't mention this and the info
manual doesn't say this very clearly, maybe it's worth improving?




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

Previous Next


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