]> git.eshelyaron.com Git - emacs.git/commitdiff
(add-to-history): Remove keep-dups arg.
authorKim F. Storm <storm@cua.dk>
Sun, 7 May 2006 20:49:01 +0000 (20:49 +0000)
committerKim F. Storm <storm@cua.dk>
Sun, 7 May 2006 20:49:01 +0000 (20:49 +0000)
lisp/subr.el

index 82d60a34d5f282e38e2f62c528c31217d01bf644..d4167724ca02953833a45327d96f847955a04d19 100644 (file)
@@ -1123,21 +1123,20 @@ The return value is the new value of LIST-VAR."
                                (< oa ob)
                              oa)))))))
 
-(defun add-to-history (history-var newelt &optional maxelt keep-dups)
+(defun add-to-history (history-var newelt &optional maxelt)
   "Add NEWELT to the history list stored in the variable HISTORY-VAR.
 Return the new history list.
 If MAXELT is non-nil, it specifies the maximum length of the history.
 Otherwise, the maximum history length is the value of the `history-length'
 property on symbol HISTORY-VAR, if set, or the value of the `history-length'
 variable.
-Remove duplicates of NEWELT unless `history-delete-duplicates' is nil
-or KEEP-DUPS is non-nil."
+Remove duplicates of NEWELT unless `history-delete-duplicates' is nil."
   (unless maxelt
     (setq maxelt (or (get history-var 'history-length)
                     history-length)))
   (let ((history (symbol-value history-var))
        tail)
-    (if (and history-delete-duplicates (not keep-dups))
+    (if history-delete-duplicates
        (setq history (delete newelt history)))
     (setq history (cons newelt history))
     (when (integerp maxelt)