1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 17:10:51 -08:00

(internal_equal): When comparing strings, ignore text props.

Friedman offers to fix anything that has trouble due to this.
This commit is contained in:
Richard M. Stallman 1997-05-23 17:32:41 +00:00
parent 83897674fc
commit 36febf9e9b

View file

@ -1159,13 +1159,6 @@ internal_equal (o1, o2, depth)
if (bcmp (XSTRING (o1)->data, XSTRING (o2)->data,
XSTRING (o1)->size))
return 0;
#ifdef USE_TEXT_PROPERTIES
/* If the strings have intervals, verify they match;
if not, they are unequal. */
if ((XSTRING (o1)->intervals != 0 || XSTRING (o2)->intervals != 0)
&& ! compare_string_intervals (o1, o2))
return 0;
#endif
return 1;
}
return 0;