From 7cb0aae4e1fab72548fbccc26c00e84317f2ad40 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 6 May 2006 07:54:37 +0000 Subject: [PATCH] Document add-to-history. --- etc/NEWS | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index 378f715b286..2d6675b1e72 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3557,6 +3557,17 @@ It modifies the list destructively, like `delete'. Of several `equal' occurrences of an element in the list, the one that's kept is the first one. ++++ +*** New function `add-to-history' adds an element to a history list. + +By default it removes duplicate elements from the history list it +updates, but if `history-delete-duplicates' is nil or the function's +optional argument KEEP-DUPS is non-nil, duplicate elements are not +removed. + +Lisp packages should use this function to add elements to their +history lists. + +++ *** New function `rassq-delete-all'. -- 2.39.2