# HG changeset patch # User Eli Zaretskii # Date 1146902077 0 # Node ID 4b9bc06235deb5cf3dc3deedd39ad35f6ac6cc0b # Parent f79400cfcdca0d2b69701331bb7ff3b4c1c54cdc Document add-to-history. diff -r f79400cfcdca -r 4b9bc06235de etc/NEWS --- 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