diff options
| author | Eli Zaretskii | 2014-04-24 18:11:04 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-04-24 18:11:04 +0300 |
| commit | 402a211fd318d0aef8de6cb606e678d2ec64706d (patch) | |
| tree | 00df3558f0dec0d121827c52bf0ffa994d03148e | |
| parent | bc0650fdb6476da2d0fcb563955d848479b14959 (diff) | |
| download | emacs-402a211fd318d0aef8de6cb606e678d2ec64706d.tar.gz emacs-402a211fd318d0aef8de6cb606e678d2ec64706d.zip | |
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.
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/strings.texi | 6 |
2 files changed, 10 insertions, 2 deletions
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 @@ | |||
| 1 | 2014-04-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * strings.texi (Text Comparison): Mention | ||
| 4 | equal-including-properties for when text properties of the strings | ||
| 5 | matter for comparison. | ||
| 6 | |||
| 1 | 2014-04-21 Eli Zaretskii <eliz@gnu.org> | 7 | 2014-04-21 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * text.texi (Registers): Document register-read-with-preview. | 9 | * 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 | |||
| 423 | 423 | ||
| 424 | This function is equivalent to @code{equal} for comparing two strings | 424 | This function is equivalent to @code{equal} for comparing two strings |
| 425 | (@pxref{Equality Predicates}). In particular, the text properties of | 425 | (@pxref{Equality Predicates}). In particular, the text properties of |
| 426 | the two strings are ignored. But if either argument is not a string | 426 | the two strings are ignored; use @code{equal-including-properties} if |
| 427 | or symbol, an error is signaled. | 427 | you need to distinguish between strings that differ only in their text |
| 428 | properties. However, unlike @code{equal}, if either argument is not a | ||
| 429 | string or symbol, @code{string=} signals an error. | ||
| 428 | 430 | ||
| 429 | @example | 431 | @example |
| 430 | (string= "abc" "abc") | 432 | (string= "abc" "abc") |