diff etc/NEWS @ 70434:4b9bc06235de

Document add-to-history.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 06 May 2006 07:54:37 +0000
parents 75313660a170
children f1d1775c6b28
line wrap: on
line diff
--- a/etc/NEWS	Sat May 06 07:53:25 2006 +0000
+++ b/etc/NEWS	Sat May 06 07:54:37 2006 +0000
@@ -3558,6 +3558,17 @@
 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