emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e7d3ddf: Clarify doc string of cl-pushnew


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master e7d3ddf: Clarify doc string of cl-pushnew
Date: Fri, 23 Aug 2019 00:12:50 -0400 (EDT)

branch: master
commit e7d3ddf689300bdcccbd1762cf3387ceb17505a1
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Clarify doc string of cl-pushnew
    
    * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string
    (bug#37016).
---
 lisp/emacs-lisp/cl-lib.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 7b22fa8..fceabf8 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]