From: Eli Zaretskii Date: Thu, 24 Apr 2014 15:11:04 +0000 (+0300) Subject: Minor doc fix for string predicates. X-Git-Tag: emacs-24.3.91~90 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=402a211fd318d0aef8de6cb606e678d2ec64706d;p=emacs.git Minor doc fix for string predicates. doc/lispref/strings.texi (Text Comparison): Mention equal-including-properties for when text properties of the strings matter for comparison. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index de3b1ddb20c..c2907cccf6e 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,9 @@ +2014-04-24 Eli Zaretskii + + * strings.texi (Text Comparison): Mention + equal-including-properties for when text properties of the strings + matter for comparison. + 2014-04-21 Eli Zaretskii * text.texi (Registers): Document register-read-with-preview. diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 24218a9cf15..e6b00f06f79 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -423,8 +423,10 @@ the symbol names are used. Case is always significant, regardless of This function is equivalent to @code{equal} for comparing two strings (@pxref{Equality Predicates}). In particular, the text properties of -the two strings are ignored. But if either argument is not a string -or symbol, an error is signaled. +the two strings are ignored; use @code{equal-including-properties} if +you need to distinguish between strings that differ only in their text +properties. However, unlike @code{equal}, if either argument is not a +string or symbol, @code{string=} signals an error. @example (string= "abc" "abc")