diff options
| author | Glenn Morris | 2008-02-11 00:49:28 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-11 00:49:28 +0000 |
| commit | 6bafe8bc27dd3e82849a58be69ca2aba4b666e25 (patch) | |
| tree | f1b9ab12338bc305ed7f4439c72fa021307b1ab0 | |
| parent | d6a72cc5000fa6ee663ad3b353df261478f365e5 (diff) | |
| download | emacs-6bafe8bc27dd3e82849a58be69ca2aba4b666e25.tar.gz emacs-6bafe8bc27dd3e82849a58be69ca2aba4b666e25.zip | |
Lawrence Mitchell <wence at gmx.li> (tiny change)
(Equality Predicates): Add defun for equal-including-properties.
| -rw-r--r-- | lispref/objects.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lispref/objects.texi b/lispref/objects.texi index 9aa8ba24712..95a858c3cc3 100644 --- a/lispref/objects.texi +++ b/lispref/objects.texi | |||
| @@ -2032,6 +2032,23 @@ returns @code{t} if and only if both the expressions below return | |||
| 2032 | Because of this recursive method, circular lists may therefore cause | 2032 | Because of this recursive method, circular lists may therefore cause |
| 2033 | infinite recursion (leading to an error). | 2033 | infinite recursion (leading to an error). |
| 2034 | 2034 | ||
| 2035 | @defun equal-including-properties object1 object2 | ||
| 2036 | This function behaves like @code{equal} in all cases but also requires | ||
| 2037 | that for two strings to be equal, they have the same text properties. | ||
| 2038 | |||
| 2039 | @example | ||
| 2040 | @group | ||
| 2041 | (equal "asdf" (propertize "asdf" '(asdf t))) | ||
| 2042 | @result{} t | ||
| 2043 | @end group | ||
| 2044 | @group | ||
| 2045 | (equal-including-properties "asdf" | ||
| 2046 | (propertize "asdf" '(asdf t))) | ||
| 2047 | @result{} nil | ||
| 2048 | @end group | ||
| 2049 | @end example | ||
| 2050 | @end defun | ||
| 2051 | |||
| 2035 | @ignore | 2052 | @ignore |
| 2036 | arch-tag: 9711a66e-4749-4265-9e8c-972d55b67096 | 2053 | arch-tag: 9711a66e-4749-4265-9e8c-972d55b67096 |
| 2037 | @end ignore | 2054 | @end ignore |