]> git.eshelyaron.com Git - emacs.git/commitdiff
Clarify doc string of cl-pushnew
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 23 Aug 2019 04:12:44 +0000 (06:12 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 23 Aug 2019 04:12:44 +0000 (06:12 +0200)
* lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string
(bug#37016).

lisp/emacs-lisp/cl-lib.el

index 7b22fa8483a618796e3e5d8f5164ade952136b4e..fceabf8c2e3361a42a0233a101c2ebff341bb382 100644 (file)
@@ -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