unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6581: 24.0.50; `equal-including-properties' uses `eq' to compare property values
@ 2010-07-07 14:19 Christian Ohler
  2015-01-13  2:01 ` Dmitry Gutov
  0 siblings, 1 reply; 16+ messages in thread
From: Christian Ohler @ 2010-07-07 14:19 UTC (permalink / raw)
  To: 6581

I just noticed that, in my current Emacs (24.0.50.1, built from trunk a 
few weeks ago):

(equal-including-properties #("a" 0 1 (k "v")) #("a" 0 1 (k "v")))
=> nil

This is because these two strings both have a property with key `k', but 
the values are two different strings "v", and 
`equal-including-properties' appears to use `eq' to compare property 
values (I didn't verify this in the code).  Is this a bug, or is it 
intentional?

For comparison,

(equal-including-properties #("a" 0 1 (k v)) #("a" 0 1 (k v)))
=> t

since `v' is an interned symbol.

My expectation was that, since `equal' is recursively defined in terms 
of itself, `equal-including-properties' should also call itself 
recursively on property values.

Christian.





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-10-31  2:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 14:19 bug#6581: 24.0.50; `equal-including-properties' uses `eq' to compare property values Christian Ohler
2015-01-13  2:01 ` Dmitry Gutov
2015-01-13  2:23   ` Drew Adams
2015-01-13  2:27     ` Dmitry Gutov
2015-01-13 15:23   ` Stefan Monnier
2015-01-13 15:33     ` Drew Adams
2015-01-13 15:44     ` Dmitry Gutov
2015-01-13 19:53       ` Stefan Monnier
2021-10-20 14:49         ` Stefan Kangas
2021-10-21 13:06           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-21 18:05             ` Stefan Kangas
2021-10-21 18:15               ` Eli Zaretskii
2021-10-21 18:36                 ` Stefan Kangas
2021-10-31  2:25                 ` Stefan Kangas
2021-10-21 19:42               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-21 21:02                 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).