Commit e7d3ddf6 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Clarify doc string of cl-pushnew

* lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string
(bug#37016).
parent a1792096
Pipeline #2944 failed with stage
in 90 minutes and 2 seconds
......@@ -129,9 +129,12 @@ The return value is the decremented value of PLACE."
(list 'cl-callf '- place (or x 1))))
(defmacro cl-pushnew (x place &rest keys)
"(cl-pushnew X PLACE): insert X at the head of the list if not already there.
Like (push X PLACE), except that the list is unmodified if X is `eql' to
an element already on the list.
"Add X to the list stored in PLACE unless already X is already in the list.
PLACE is a generalized variable that stores a list.
Like (push X PLACE), except that PLACE is unmodified if X is
`eql' to an element already in PLACE list.
\nKeywords supported: :test :test-not :key
\n(fn X PLACE [KEYWORD VALUE]...)"
(declare (debug
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment