diff options
| author | Lars Ingebrigtsen | 2020-12-09 14:52:49 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-12-09 14:52:53 +0100 |
| commit | 445ab5cce95aee4cd5fee8ef67c2ee24c1c8850a (patch) | |
| tree | e39cf2999c3326fd87e6043c61e13e685f4528e5 | |
| parent | c47e6aa1f48fc4417588cef55d96b4e9c1b3fead (diff) | |
| download | emacs-445ab5cce95aee4cd5fee8ef67c2ee24c1c8850a.tar.gz emacs-445ab5cce95aee4cd5fee8ef67c2ee24c1c8850a.zip | |
cl-pushnew manual clarification
* doc/misc/cl.texi (Modify Macros): Don't claim that cl-pushnew
uses eql.
(Lists as Sets): Mention that eql is the default comparison function.
| -rw-r--r-- | doc/misc/cl.texi | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 084edd11b2d..742be28fe34 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -1097,10 +1097,9 @@ by @var{x} if specified. | |||
| 1097 | 1097 | ||
| 1098 | @defmac cl-pushnew x place @t{&key :test :test-not :key} | 1098 | @defmac cl-pushnew x place @t{&key :test :test-not :key} |
| 1099 | This macro inserts @var{x} at the front of the list stored in | 1099 | This macro inserts @var{x} at the front of the list stored in |
| 1100 | @var{place}, but only if @var{x} was not @code{eql} to any | 1100 | @var{place}, but only if @var{x} isn't present in the list already. |
| 1101 | existing element of the list. The optional keyword arguments | 1101 | The optional keyword arguments are interpreted in the same way as for |
| 1102 | are interpreted in the same way as for @code{cl-adjoin}. | 1102 | @code{cl-adjoin}. @xref{Lists as Sets}. |
| 1103 | @xref{Lists as Sets}. | ||
| 1104 | @end defmac | 1103 | @end defmac |
| 1105 | 1104 | ||
| 1106 | @defmac cl-shiftf place@dots{} newvalue | 1105 | @defmac cl-shiftf place@dots{} newvalue |
| @@ -3796,8 +3795,10 @@ This is a destructive version of @code{cl-sublis}. | |||
| 3796 | @section Lists as Sets | 3795 | @section Lists as Sets |
| 3797 | 3796 | ||
| 3798 | @noindent | 3797 | @noindent |
| 3799 | These functions perform operations on lists that represent sets | 3798 | These functions perform operations on lists that represent sets of |
| 3800 | of elements. | 3799 | elements. All these functions (unless otherwise specified) default to |
| 3800 | using @code{eql} as the test function, but that can be modified by the | ||
| 3801 | @code{:test} parameter. | ||
| 3801 | 3802 | ||
| 3802 | @defun cl-member item list @t{&key :test :test-not :key} | 3803 | @defun cl-member item list @t{&key :test :test-not :key} |
| 3803 | This function searches @var{list} for an element matching @var{item}. | 3804 | This function searches @var{list} for an element matching @var{item}. |