summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2006-05-06 07:54:37 +0000
committerEli Zaretskii <eliz@gnu.org>2006-05-06 07:54:37 +0000
commit7cb0aae4e1fab72548fbccc26c00e84317f2ad40 (patch)
tree4a9074c63bbd5af0813ed710c34ec20fb9601ac9
parent321eb4b29a0cd5899f0ff7633f86935e9167175f (diff)
downloademacs-7cb0aae4e1fab72548fbccc26c00e84317f2ad40.tar.gz
Document add-to-history.
-rw-r--r--etc/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 378f715b286..2d6675b1e72 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3558,6 +3558,17 @@ 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'.
(rassq-delete-all VALUE ALIST) deletes, from ALIST, each element whose